arbret/Makefile
2025-12-18 21:48:41 +01:00

37 lines
641 B
Makefile

.PHONY: install-backend install-frontend install backend frontend db db-stop dev test test-frontend test-e2e
install-backend:
cd backend && uv sync --all-groups
install-frontend:
cd frontend && npm install
install: install-backend install-frontend
backend:
cd backend && uv run uvicorn main:app --reload
frontend:
cd frontend && npm run dev
db:
docker compose up -d db
db-stop:
docker compose down
dev:
$(MAKE) db
cd backend && uv run uvicorn main:app --reload & \
cd frontend && npm run dev & \
wait
test-backend:
cd backend && uv run pytest -v
test-frontend:
cd frontend && npm run test
test-e2e:
./scripts/e2e.sh