Developer Guide
Verified against the repository on 2026-05-17.
Quick orientation
flowchart LR
Code["Code in src/app"] --> Tests["Tests"]
Tests --> Gates["CI quality gates"]
Gates --> MR["Merge Request"]
MR --> Main["main"]
Where to find what
| Path | Purpose |
src/app/api | route handlers (API + dashboard) |
src/app/services | business logic and integrations |
src/app/workers | background job processing |
src/app/models | SQLAlchemy models |
src/app/schemas | Pydantic request/response DTOs |
src/app/security | auth, CSRF, token utilities |
src/app/observability | logging, metrics, tracing |
tests/* | unit, integration, load tests |
Local setup
| Bash |
|---|
| python -m venv .venv
# Linux/macOS: source .venv/bin/activate
# Windows: .venv\Scripts\Activate.ps1
pip install -e ".[dev]"
docker compose up -d postgres redis
alembic upgrade head
uvicorn app.main:app --reload
|
Required quality gates
| Bash |
|---|
| ruff check src/ tests/ scripts/
ruff format --check src/ tests/ scripts/
mypy src/app
pytest tests/unit -q
|
CI definition:
API and contracts
- route inventory:
docs/04-api-spec.md - dashboard routes:
src/app/api/dashboard.py - health/metrics:
src/app/api/health.py
Recommended workflow
- Create a branch (
feature/*, fix/*, refactor/*). - Implement change + tests.
- Pass local quality gates.
- Open MR with impact and test notes.
- Merge after code review and green CI.
Documentation
- internal docs:
docs/* - docs site (SK/EN):
docs-site/docs/* - system audit:
docs/00_system_audit_2026-02-15.md