Files
codetutor/backend
2025-05-25 11:47:04 +01:00
..
2025-05-25 11:47:04 +01:00
2025-04-20 17:52:49 +01:00
2025-04-26 17:55:18 +01:00
2025-04-10 23:04:51 +01:00
2025-04-21 22:17:16 +01:00
2025-04-10 23:04:51 +01:00

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 filters
  • GET /api/questions/{slug} - Question detail
  • GET /api/categories - List categories
  • GET /api/patterns - List patterns
  • GET /api/patterns/{slug} - Pattern detail
  • GET /api/stats - Aggregate statistics
  • GET /api/health - Health check

Testing

pytest

Code Quality

ruff check .
ruff format --check .
mypy src/