-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (23 loc) · 898 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (23 loc) · 898 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
SHELL := /bin/bash
.PHONY: setup setup-backend setup-frontend test test-backend build build-frontend gate up install keys seed-admin
# One-command install + launch (auto-detects Docker vs local).
install up:
./install.sh
# Interactive wizard to add/update all API keys in the single .env.
keys:
./scripts/setup-keys.sh
# Seed the initial admin account from BOOTSTRAP_ADMIN_* in .env (idempotent).
seed-admin:
PYTHONPATH=. python scripts/seed_admin.py
setup: setup-backend setup-frontend
setup-backend:
cd backend && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt && pip install pytest
setup-frontend:
cd frontend && npm install
test: test-backend
test-backend:
cd backend && source .venv/bin/activate && python -m compileall . && pytest -q
build: build-frontend
build-frontend:
cd frontend && npm run build
gate: test-backend build-frontend