-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (36 loc) · 928 Bytes
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
PORT = 7000
CD=cd src &&
start:
@echo "starting development server"
$(CD) python3 manage.py runserver $(PORT)
install:
@echo "installing all dependencies"
$(CD) pip3 install -r requirements.txt
migrate:
@echo "migrating into the db"
$(CD) python3 manage.py migrate
migrations:
@echo "creating migrations files"
$(CD) python3 manage.py makemigrations
pytest:
@echo "testing..."
py.test src/api
test:
@echo "testing..."
$(CD) python3 manage.py test
seed-category:
@echo "testing..."
$(CD) python3 manage.py category
dumpdata:
@echo "dumpdata db data"
$(CD) python3 manage.py dumpdata api --indent 4 > db.json
loaddata:
@echo "loading db.json data into the db"
$(CD) python3 manage.py loaddata db.json
freeze:
@echo "updating requirements.txt file"
$(CD) rm -f requirements.txt
$(CD) pip3 freeze >> requirements.txt
action:
@echo "executing other command"
$(CD) python3 manage.py $(ARGS)