Quality control backend (FastAPI + PostgreSQL + OAuth + JWT)
- Install dependencies:
cd backend && uv sync
- Copy environment file:
cd backend && cp .env.example .env- configure
DATABASE_URL,SECRET_KEY,GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET
- Run app:
cd backend && uv run uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
GET /healthPOST /auth/token(local form auth)GET /auth/google/login-> Google OAuth consentGET /auth/google/callback-> returns JWTGET /auth/me(Bearer token)
cd backend && uv run alembic upgrade head