This file provides guidance for AI coding agents (Codex, Copilot, Cursor, Zed, OpenCode).
proj2 - FastAPI application generated with Full-Stack AI Agent Template.
Stack: FastAPI + Pydantic v2, PostgreSQL , JWT + API Key auth, Redis , pydantic_ai (google), Next.js 15 (i18n)
# Run server
cd backend && uv run uvicorn app.main:app --reload
# Tests & lint
pytest
ruff check . --fix && ruff format .
# Migrations
uv run alembic upgrade head
uv run alembic revision --autogenerate -m "Description"backend/app/
├── api/routes/v1/ # Endpoints
├── services/ # Business logic
├── repositories/ # Data access
├── schemas/ # Pydantic models
├── db/models/ # DB models
├── agents/ # AI agents
└── commands/ # CLI commands
db.flush()in repositories, notcommit()- Services raise
NotFoundError,AlreadyExistsError - Separate
Create,Update,Responseschemas - Commands auto-discovered from
app/commands/
docs/architecture.md- Architecture detailsdocs/adding_features.md- How to add featuresdocs/testing.md- Testing guidedocs/patterns.md- Code patterns