| backend | ||
| docs | ||
| frontend | ||
| memory | ||
| test_reports | ||
| tests | ||
| .gitignore | ||
| CLAUDE.md | ||
| design_guidelines.json | ||
| docker-compose.yml | ||
| README.md | ||
| test_result.md | ||
| yarn.lock | ||
Here are your Instructions
Production Deployment
-
Copy
backend/.env.exampletobackend/.env. Generate a unique JWT key with:python -c "import secrets; print(secrets.token_urlsafe(48))" -
Set
JWT_SECRET,STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET, andCORS_ORIGINSinbackend/.env. Use a Stripe live secret key and its matching webhook signing secret, setENV=live, and replace the example origin with the public frontend origin. Never commit.envfiles. -
Configure a Stripe platform webhook pointing to
https://<your-domain>/api/stripe/webhookforpayment_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_reinstatedfor chargebacks/SEPA returns (andcheckout.session.completedwhile older Checkout-Session payments are still open). Set its signing secret asSTRIPE_WEBHOOK_SECRET. Also setMFA_ENCRYPTION_KEY(own key for 2FA secrets),WEBAUTHN_RP_IDandWEBAUTHN_ORIGIN(passkeys), andpayment_intent.processingin the webhook for SEPA debit. Also setSTRIPE_PUBLISHABLE_KEY(pk_test_…/pk_live_…, matching the secret key's mode): the embedded payment form on/pay/:idneeds it. -
Start the stack with
docker compose up --build -d. Compose waits for MongoDB and the API health checks before starting the frontend. Check readiness athttps://<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.