forked from The-Powerpuff-Girls3/CSC-510-Movie-Mood
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 661 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PYTHON = py # change the python run command according to your system
PIP = pip
.PHONY: help
help:
@echo "Makefile for Django Project"
@echo ""
@echo "Usage:"
@echo " make db Initialize database tables"
@echo " make install Install all dependencies"
@echo " make run Start the Flask development server"
@echo " make tests Run all tests"
@echo ""
# Install all dependencies
.PHONY: install
install:
$(PIP) install -r requirements.txt
# Apply database migrations
.PHONY: db
db:
$(PYTHON) app/src/init_db.py
# Start the Flask server
.PHONY: run
run:
$(PYTHON) app/run.py
# Run all tests
.PHONY: tests
tests:
pytest