Systemet til håndtering af Fælles Vinindkøb
Datamodel section now reflects reality: PurchaseRound's season/year was replaced with opens_at/order_deadline_at/pickup_at + a free-text name (per user feedback during task 2); WineOffering's vintage was dropped (folded into name); added the MailTemplate/MailLog models and Route's sender_name/sender_email that opgave 7 introduced; noted Order/OrderLine exist as models but have no API yet. Fase 1 task list marks 1-7 done and expands 7 into its actual 7a/7b/7c shape. Added a short auth line (JWT + sudo-style elevation) and resolved the "Mail: SMTP-udbyder — afklares" placeholder now that Postal is wired up. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| app | ||
| migrations | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| .python-version | ||
| alembic.ini | ||
| CLAUDE.md | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Vinindkøb v2
Admin-backend til fælles vinindkøb (FastAPI + SQLModel + PostgreSQL + Alembic). Se CLAUDE.md for projektplan og datamodel.
Kom i gang
uv sync
cp .env.example .env # udfyld DATABASE_URL med din egen Postgres-instans
uv run alembic upgrade head
uv run fastapi dev app/main.py
GET /health bekræfter at appen kan nå databasen.