-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 834 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 834 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
# Start and Build db & django App
docker-build:
docker compose up -d db api --build
# Seed DB
docker-seed:
docker-compose exec api python manage.py loaddata api/fixtures/products.json
docker-compose exec api python manage.py loaddata api/fixtures/subcategories.json
docker-compose exec api python manage.py loaddata api/fixtures/subproducts.json
# Start the Express app containerized
docker-start:
docker-compose up -d client --build
# Stop the Django, React & DB
docker-stop:
docker-compose down
# Unit test the app
test-client-docker:
chmod +x run-jest-tests.sh && ./run-jest-tests.sh
# Unit test the app django
test-api-docker:
docker-compose run client python manage.py test
# Unit test the client locally
test-client-local:
yarn run test
# Unit test the backend locally
test-api-local:
python manage.py test