-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 713 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 713 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
35
36
start:
# Start the application in docker-compose
docker-compose up -d --build
$(MAKE) migrate
logs:
docker-compose logs -f
migrate:
# run all Django migrations
docker-compose run api python manage.py migrate
test/api:
docker-compose run api python manage.py test
test/client:
cd client && yarn test:coverage --watchAll=false
lint/api:
docker-compose run api pylint api
lint/client:
docker-compose run client yarn lint
format/python:
docker-compose exec api black api --exclude api/api/migrations
test/ci:
make lint/api
make test/api
cd client && yarn test:coverage --watchAll=false --ci
recreate:
docker-compose down
docker volume rm django-react-boilerplate_node_modules
$(MAKE) start