CodeTutor Backend
FastAPI backend for the CodeTutor coding interview preparation application.
Setup
# Install dependencies
pip install -e ".[dev]"
# Run migrations
alembic upgrade head
# Load content data
python scripts/load_data.py
# Start development server
uvicorn src.main:app --reload
API Endpoints
GET /api/questions- List questions with filtersGET /api/questions/{slug}- Question detailGET /api/categories- List categoriesGET /api/patterns- List patternsGET /api/patterns/{slug}- Pattern detailGET /api/stats- Aggregate statisticsGET /api/health- Health check
Testing
pytest
Code Quality
ruff check .
ruff format --check .
mypy src/