-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 706 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 706 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
.PHONY: dev backend frontend install migrate format
dev: ## Start backend and frontend concurrently
@trap 'kill 0' SIGINT; \
(cd backend && uv run uvicorn app.main:app --reload --port 7400) & \
(cd frontend && npm run dev) & \
wait
backend: ## Start backend only
cd backend && uv run uvicorn app.main:app --reload --port 7400
frontend: ## Start frontend only
cd frontend && npm run dev
install: ## Install all dependencies
cd backend && uv sync --extra dev
cd frontend && npm install
migrate: ## Run database migrations
cd backend && uv run alembic upgrade head
format: ## Auto-format backend (ruff) and frontend (prettier)
cd backend && uv run ruff format .
cd frontend && npm run format