-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 1.46 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
SHELL := /bin/bash
.PHONY: dev backend frontend install clean start stop restart status
# ── One-click lifecycle (background, managed) ────────────────────────────────
start:
@bash scripts/start.sh
stop:
@bash scripts/stop.sh
restart:
@bash scripts/restart.sh
status:
@bash scripts/status.sh
# ── Foreground dev (legacy, Ctrl-C to stop) ──────────────────────────────────
dev: backend frontend
backend:
cd backend && source venv/bin/activate && uvicorn app.main:app --reload --host 127.0.0.1 --port 8000
frontend:
cd frontend && npm run dev
# ── Setup ────────────────────────────────────────────────────────────────────
install:
cd backend && python3.12 -m venv venv && source venv/bin/activate && pip install -r <(python -c "import tomllib; print('\\n'.join(tomllib.load(open('pyproject.toml','rb'))['project']['dependencies']))")
cd frontend && npm install
# ── Cleanup ──────────────────────────────────────────────────────────────────
clean: stop
rm -rf backend/token_monitor.db backend/__pycache__ frontend/node_modules frontend/dist
rm -rf .pids logs