No description
Find a file
2026-11-02 01:40:44 +01:00
backend update 2026-11-02 01:40:44 +01:00
docs update 2026-11-02 01:40:44 +01:00
frontend update 2026-11-02 01:40:44 +01:00
memory update 2026-10-28 13:41:44 +00:00
test_reports update 2026-10-28 13:41:44 +00:00
tests update 2026-11-02 01:40:44 +01:00
.gitignore update 2026-10-28 22:12:34 +01:00
CLAUDE.md update 2026-10-31 21:17:08 +01:00
design_guidelines.json update 2026-10-28 13:41:44 +00:00
docker-compose.yml update 2026-10-28 22:12:34 +01:00
README.md update 2026-11-01 23:58:27 +01:00
test_result.md update 2026-10-28 13:41:44 +00:00
yarn.lock update 2026-10-28 13:41:44 +00:00

Here are your Instructions

Production Deployment

  1. Copy backend/.env.example to backend/.env. Generate a unique JWT key with:

    python -c "import secrets; print(secrets.token_urlsafe(48))"
    
  2. Set JWT_SECRET, STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, and CORS_ORIGINS in backend/.env. Use a Stripe live secret key and its matching webhook signing secret, set ENV=live, and replace the example origin with the public frontend origin. Never commit .env files.

  3. Configure a Stripe platform webhook pointing to https://<your-domain>/api/stripe/webhook for payment_intent.succeeded, payment_intent.payment_failed, charge.refunded, account.updated, payout.paid, payout.failed, payout.canceled, charge.dispute.created, charge.dispute.updated, charge.dispute.closed, charge.dispute.funds_withdrawn, charge.dispute.funds_reinstated for chargebacks/SEPA returns (and checkout.session.completed while older Checkout-Session payments are still open). Set its signing secret as STRIPE_WEBHOOK_SECRET. Also set MFA_ENCRYPTION_KEY (own key for 2FA secrets), WEBAUTHN_RP_ID and WEBAUTHN_ORIGIN (passkeys), and payment_intent.processing in the webhook for SEPA debit. Also set STRIPE_PUBLISHABLE_KEY (pk_test_…/pk_live_…, matching the secret key's mode): the embedded payment form on /pay/:id needs it.

  4. Start the stack with docker compose up --build -d. Compose waits for MongoDB and the API health checks before starting the frontend. Check readiness at https://<your-domain>/healthz.

Live startup fails when the JWT secret is missing or too short, the Stripe key mode does not match ENV, or the Stripe webhook signing secret is missing. The existing JWT secret, if rotated, invalidates all existing sessions. Rotate any Stripe or webhook secrets that have ever been committed or disclosed.

The current deployment supports one Stripe key mode per stack. Recurring Stripe billing is not implemented; subscription endpoints currently manage VirexPay records only.