-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (23 loc) · 826 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (23 loc) · 826 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
setup:
docker compose up --build
up:
docker compose up
terminal:
docker exec -it marketly_dev-backend-1 /bin/bash
feeddb:
docker exec -it marketly_dev-backend-1 python manage.py feed_db
loaddata:
docker exec -it marketly_dev-backend-1 python manage.py loaddata fixtures/categories.json fixtures/users.json fixtures/products.json fixtures/orders.json fixtures/reviews.json
flush:
docker exec -it marketly_dev-backend-1 python manage.py flush --noinput
db:
psql -h localhost -p 5432 -d marketly_dev_db -U marketly_dev_db_user -W
down:
docker compose down
schema:
python manage.py spectacular --file schema.yml
test:
docker compose run backend python -m pytest --reuse-db
unit_test:
docker compose run backend python -m pytest --reuse-db -k test_cart.py
.PHONY: dev-image up bash down test rm build push