-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 886 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (26 loc) · 886 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
37
.PHONY: dev test lint validate seed-demo serve-demo e2e demo-check db-up db-down live-serve
dev:
cd backend && python -m uvicorn app.main:app --reload --port 8000
# live-fire server: MUST run with backend/ as cwd ("No module named 'app'" otherwise)
live-serve:
cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
test:
cd backend && python -m pytest -q
lint:
ruff check backend
validate:
cd backend && python -m pytest tests/validation -q
seed-demo:
python demo-store/generate.py
cd backend && python -m scripts.seed_demo
serve-demo:
cd demo-store/site && python -m http.server 8080
# one-time install required: cd frontend && npm i -D @playwright/test && npx playwright install chromium
e2e:
cd frontend && npx playwright test
demo-check:
cd backend && python -m scripts.demo_check
db-up:
docker compose up -d db
db-down:
docker compose down