Spaces:
Sleeping
Sleeping
File size: 1,026 Bytes
fc5156b 49eecdc fc5156b 49eecdc fc5156b | 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 | # Convenience shortcuts. On Windows, run the underlying commands directly if you
# don't have `make` (see README "Local setup").
.PHONY: install backend frontend test eval reset-db docker-up docker-down
install: ## Install backend (dev) + frontend dependencies
cd backend && pip install -r requirements-dev.txt
cd frontend && npm install
backend: ## Run the FastAPI backend with auto-reload on :8000
cd backend && uvicorn app.main:app --reload --port 8000
frontend: ## Run the Vite dev server on :5173
cd frontend && npm run dev
test: ## Run the backend test suite
cd backend && pytest
eval: ## Run the anti-hallucination evaluation from the CLI
cd backend && python -m app.eval_cli
reset-db: ## Drop and recreate the local database (clean slate)
cd backend && python -m app.reset_db
docker-up: ## Build and run backend + frontend with Docker Compose
docker compose up --build
docker-down: ## Stop and remove the Docker Compose stack
docker compose down
|