Initial: RAPPORT-HOST Iteration 1 (proprietär)

Kommerzielle Hosting-/Abo-Plattform für Rapport-Instanzen.

- React-Frontend (Vite/JSX): Landing, Register, Login, Plans, Dashboard
- Node/Express-Backend: Auth (bcrypt+JWT), Stripe-Billing, Provisioning
- HOST-Postgres-Schema: accounts, subscriptions, instances
- Provisioning-Interface + Modell-A-Adapter (Studio im geteilten Stack)
- MOCK-Modus: voller End-to-End-Flow ohne Stripe/Rapport-Stack testbar
- Idempotentes Fulfillment (Upsert auf stripe_subscription_id)
- docker-compose für lokale host-db; identisch auf Hetzner deploybar

E2E lokal verifiziert: Register -> Checkout(mock) -> Instanz -> Idempotenz.

Lizenz: proprietär (kein AGPL-Code eingebunden, nur Netzwerk-API zur Familie).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 15:35:47 +02:00
commit 6290475ea3
34 changed files with 4115 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# RAPPORT-HOST — lokaler Stack (identisch deploybar auf Hetzner via .env).
# Nur die HOST-eigene Postgres läuft hier als Container; das Backend/Frontend
# fährst du im Dev mit `npm run server` + `npm run dev`. Für Prod ist unten ein
# (auskommentiertes) app-Image vorbereitet.
services:
host-db:
image: postgres:16-alpine
container_name: rapport-host-db
restart: unless-stopped
environment:
POSTGRES_USER: rapport_host
POSTGRES_PASSWORD: rapport_host
POSTGRES_DB: rapport_host
ports:
- "55432:5432" # 55432 lokal, um Konflikte mit anderen PG zu vermeiden
volumes:
- host-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "rapport_host"]
interval: 5s
timeout: 5s
retries: 10
# ── Prod (später): Backend+Frontend als ein Image ─────────────────────────
# app:
# build: .
# environment:
# DATABASE_URL: postgres://rapport_host:rapport_host@host-db:5432/rapport_host
# # restliche Env aus .env / Hetzner-Secrets
# depends_on:
# host-db:
# condition: service_healthy
# ports:
# - "8787:8787"
volumes:
host-db-data: