Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (42 loc) · 1.86 KB
/
Copy pathMakefile
File metadata and controls
63 lines (42 loc) · 1.86 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: build up down logs shell test seed reset lint
# ── Docker ────────────────────────────────────────────────────────────────────
build:
docker compose build
up:
docker compose up -d
@echo "Backend: http://localhost:8000/docs"
@echo "UI: http://localhost:3000"
down:
docker compose down
logs:
docker compose logs -f backend
shell:
docker compose exec backend bash
# Production stack (no dev overrides)
up-prod:
docker compose -f docker-compose.yml up -d
# ── Database ──────────────────────────────────────────────────────────────────
seed:
docker compose exec backend python scripts/seed_db.py
seed-reset:
docker compose exec backend python scripts/seed_db.py --reset
reset:
docker compose exec backend python scripts/seed_db.py --reset
# ── Testing ───────────────────────────────────────────────────────────────────
test:
python3.12 -m pytest tests/ -q
test-unit:
python3.12 -m pytest tests/unit/ -q
test-integration:
python3.12 -m pytest tests/integration/ -q
test-scenarios:
python3.12 -m pytest tests/scenarios/ -q
test-verbose:
python3.12 -m pytest tests/ -v
# ── CLI shortcuts ─────────────────────────────────────────────────────────────
list-scenarios:
python3.12 -m app.cli.main list-scenarios
list-modules:
python3.12 -m app.cli.main list-modules
validate:
python3.12 -m app.cli.main validate-config