-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·41 lines (41 loc) · 1.35 KB
/
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
help:
@echo '--------------------DRF BOILERPLATE-------------------'
@echo ' '
@echo 'Usage: '
@echo '------> run Run project '
@echo '------> shell Shell command line '
@echo '------> test Run tests '
@echo '------> createuser Create superuser '
@echo '------> migrate Run migrate '
@echo '------> migrations Run makemigrations '
@echo '------> install Install required packages '
@echo '------> setup Setup the project '
clean:
rm -rf config/db.sqlite3
rm -rf config/__pycache__
rm -rf config/settings/__pycache__
rm -rf v1/__pycache__
rm -rf v1/apps/__pycache__
rm -rf v1/apps/accounts/__pycache__
rm -rf v1/apps/accounts/migrations/*
run:
python3 manage.py runserver
migrate:
python3 manage.py migrate
migrations:
python3 manage.py makemigrations
createuser:
python3 manage.py createsuperuser
shell:
python3 manage.py shell
test:
python3 manage.py test
create_requirements:
pip3 freeze > requirements.txt
install:
pip3 install -r requirements.txt
setup:
pip install -r requirements.txt
python contrib/env_gen.py
python3 manage.py makemigrations
python3 manage.py migrate