Systemet til håndtering af Fælles Vinindkøb
Find a file
carsten 53a5138d45 Update CLAUDE.md to match actual implementation (opgave 1-7)
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>
2026-09-28 20:54:31 +02:00
app Add Postal webhook receiver for delivery status (task 7c) 2026-09-28 20:50:24 +02:00
migrations Add Postal webhook receiver for delivery status (task 7c) 2026-09-28 20:50:24 +02:00
scripts Add one-off participant import script for legacy MongoDB data 2026-09-27 19:16:26 +02:00
.env.example Add Postal webhook receiver for delivery status (task 7c) 2026-09-28 20:50:24 +02:00
.gitignore Add mail template CRUD (task 7a), per-route and per-event-type 2026-09-28 19:43:47 +02:00
.python-version Scaffold FastAPI + SQLModel + Alembic project, Postgres-backed 2026-09-27 15:57:44 +02:00
alembic.ini Scaffold FastAPI + SQLModel + Alembic project, Postgres-backed 2026-09-27 15:57:44 +02:00
CLAUDE.md Update CLAUDE.md to match actual implementation (opgave 1-7) 2026-09-28 20:54:31 +02:00
pyproject.toml Add Postal webhook receiver for delivery status (task 7c) 2026-09-28 20:50:24 +02:00
README.md Scaffold FastAPI + SQLModel + Alembic project, Postgres-backed 2026-09-27 15:57:44 +02:00
uv.lock Add Postal webhook receiver for delivery status (task 7c) 2026-09-28 20:50:24 +02:00

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.