Backend Development
Backend development guide for eval_752.
Tech Stack
- FastAPI 0.115 - Web framework
- SQLAlchemy - ORM
- Alembic - Database migrations
- Celery - Async task queue
- LiteLLM - LLM provider integration
- Pydantic v2 - Validation
- structlog - Structured logging
Project Structure
Development Setup
Quality Standards
Linting: ruff
Type Checking: mypy strict
Testing: pytest with 95% coverage
See Testing Guide for details.
Key Patterns
- Business logic in
services/, not routes - Dependency injection via FastAPI
- Pydantic for validation
- Structured logging with context
- Async where beneficial
- Locale negotiation via middleware plus translated API errors
For localization conventions, see Internationalization.
For complete setup, see Contributing Guide.
