feat: stabilization + recipe edit/create UI

This commit is contained in:
clawd
2026-02-18 09:55:39 +00:00
commit ee452efa6a
75 changed files with 15160 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Lessons from WERK — Was wir bei der Rezept-App NICHT wiederholen
## Architektur
- **Kein Monorepo** — Eine App, ein Repo, fertig
- **Kein shared-stubs Chaos** — Kein Packages-Ordner, alles in einem Projekt
- **SQLite statt PostgreSQL** — Kein Docker für DB nötig, einfacher
- **Kein SSR** — Reines SPA/PWA, kein hydrateRoot-Desaster
## Frontend
- **Relative API-URLs** — Kein hardcoded localhost in .env
- **Keine Radix Dialog Forms** — Forms als eigene Seiten/Routes
- **Mobile-first testen** — Von Anfang an, nicht nachträglich
## Backend
- **Fastify JWT richtig** — `register(jwt); await app.after();`
- **NODE_ENV=production** in Deployment, immer
- **Kein pino-pretty** in Production
## Deployment
- **Docker simpel** — Ein Container, ein Service
- **Keine Caddy URI-Rewrites** — Einfaches Routing
- **CORS von Anfang an richtig** — Mit Port testen
## Vorgehen
- **Inkrementell** — Erst lauffähiges Minimum, dann Features
- **Jeden Schritt testen** — Nicht 5 Features auf einmal, einzeln bauen + verifizieren
- **Agent-Tasks klein halten** — Ein Task = eine Sache