Status: ✅ Accepted — 2026-07-03
Entscheidung: Cartly Tech Stack für Phase 1 (MVP)
Cartly ist eine AI-native ERP+POS SaaS-Plattform für Fashion-Einzelhändler (1–5 Filialen) im DACH-Raum. Wir benötigen einen Tech Stack, der:
Gewählter Stack: React + Fastify (TypeScript Full-Stack)
| Layer | Technology | Rationale |
|---|---|---|
| Frontend | React 18 + TypeScript + Vite | TypeScript全程强 Typisierung, Vite = schnell Builds, exzellentes PWA-Ökosystem (Workbox) |
| UI-Komponenten | Radix UI + Tailwind CSS | Accessible Components, Customizable, Fashion-Retail Brand-Ready |
| State Management | Zustand + TanStack Query | Leichtgewichtig, TypeScript-nativ, Server State via TanStack |
| Backend | Node.js + Fastify + TypeScript | Schnellster HTTP-Layer (Benchmark-Sieger), TypeScript-nativ, Plugin-Ökosystem |
| ORM | Prisma | Type-safe, Auto-Migrations, Multi-Tenant via tenant_id, exzellente DX |
| Database | PostgreSQL 16 (Supabase / Neon) | Zuverlässig, JSONB für flexible Schemata, Row-Level Security für Multi-Tenant |
| Cache / Session | Redis (Upstash) | Serverless-kompatibel, niedrige Latenz, Pub/Sub für Real-time |
| Auth | JWT (Access + Refresh) + HTTP-only Cookies | Bewährt, keine Server-Side Session nötig, GDPR-konform |
| File Storage | S3 (Backblaze B2 als Backup) | Günstig, skalierbar, CDN-fertig |
| Search | Meilisearch | Open Source, schnell, typo-tolerant, Fashion-spezifisch (Facets für Größe/Farbe) |
| AI | OpenRouter (einheitlicher Proxy) | Provider-agnostisch, Kostenkontrolle, Single-Endpoint |
| Infrastructure | Docker + Railway / Render (MVP) → EKS (Scale) | Railway = schnell deployed, keine AWS-Komplexität für MVP; Migration zu Kubernetes bei Scale |
| Monitoring | Sentry (Errors) + Highlight.io (Sessions) | Error Tracking + Session Replay für schnellere Debugging |
| CI/CD | GitHub Actions | Integriert, kostenlos für Open Source-Repos, Actions-Ökosystem |
| Datum | Version | Änderung |
|---|---|---|
| 2026-07-03 | v1.0 | Initiale Entscheidung basierend auf PRD-001 Review |
Erstellt: 2026-07-03 von Documentation Agent (a66674bf)
Genehmigt: CPTO (b999c0b2) — implicit durch PRD-001 Freigabe