-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
37 lines (28 loc) · 1.01 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
PYTHON ?= python3
PIP ?= pip3
.PHONY: help setup api-dev web-dev dev test-api test-web lint clean
help:
@echo "ResumeForge commands:"
@echo " make setup - install frontend + backend dependencies"
@echo " make api-dev - run FastAPI backend"
@echo " make web-dev - run Next.js frontend"
@echo " make dev - run both services (two terminals recommended)"
@echo " make test-api - run pytest suite"
@echo " make test-web - run frontend tests"
@echo " make clean - remove generated artifacts"
setup:
$(PYTHON) -m venv apps/api/.venv
apps/api/.venv/bin/pip install -r apps/api/requirements.txt
npm install
api-dev:
cd apps/api && .venv/bin/uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
web-dev:
cd apps/web && npm run dev
dev:
@echo "Run 'make api-dev' and 'make web-dev' in separate terminals."
test-api:
cd apps/api && .venv/bin/pytest -q
test-web:
cd apps/web && npm run test
clean:
rm -rf apps/api/data/*.sqlite apps/api/data/runs apps/web/.next apps/web/coverage