6290475ea3
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>
7 lines
310 B
JavaScript
7 lines
310 B
JavaScript
// Stripe-Client — nur initialisiert, wenn ein echter Secret-Key vorliegt.
|
|
// Im MOCK-Modus (kein Key) bleibt `stripe` null; billing.js simuliert dann.
|
|
import Stripe from "stripe";
|
|
import { env, stripeEnabled } from "./env.js";
|
|
|
|
export const stripe = stripeEnabled ? new Stripe(env.stripe.secretKey) : null;
|