-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.67 KB
/
Makefile
File metadata and controls
55 lines (42 loc) · 1.67 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
.PHONY: setup seed dev backend frontend api-schema up up-dev up-tunnel up-dev-tunnel down
# ── Local (no Docker) ────────────────────────────────────
# Install dependencies
setup:
pip install -e .
cd frontend && npm install
# Populate data/ with sample seed data (safe: skips if data/ already exists)
seed:
@if [ -d data ]; then echo "data/ already exists — remove it first to re-seed"; exit 1; fi
cp -r seed data
@echo "Seed data copied to data/"
# Start both backend API and frontend dev server (run in separate terminals)
dev:
@echo "Run in separate terminals:"
@echo " make backend"
@echo " make frontend"
# Start backend API server using local data/ directory
backend:
cryowire-app --data-dir ./data
# Start frontend dev server
frontend:
cd frontend && npm run dev
# Export OpenAPI schema and regenerate frontend API client
api-schema:
python scripts/export_openapi.py
cd frontend && npm run generate-api
# ── Docker Compose ───────────────────────────────────────
# Start production stack (built images, named volume)
up:
docker compose -f compose.yaml up --build -d
# Start development stack (hot-reload, local ./data mount)
up-dev:
docker compose -f compose.dev.yaml up --build
# Start production stack with Cloudflare Tunnel
up-tunnel:
docker compose -f compose.yaml --profile tunnel up --build -d
# Start development stack with Cloudflare Tunnel
up-dev-tunnel:
docker compose -f compose.dev.yaml --profile tunnel up --build
# Stop running stack
down:
docker compose -f compose.yaml -f compose.dev.yaml down