Run it yourself
Needs a checkout of notification-service beside this repo, with npm ci run in its server/.
(cd api && npm ci) && (cd client && npm ci)
node e2e/stack.mjs # platform :8080, api :8787, app http://localhost:5173, demo login
cd e2e && npm test # browser tests, including admin, growth, upgrade and journal flows
cd api && npm test # API tests (limits, levels, referrals, payments, journal, admin roles)
Going live needs: a permanent domain (subscriptions are bound to the origin), a deployed notification-service v2 platform with the tenant granted content:write, node content/seed.mjs, a Google OAuth client, JOURNAL_KEY (never changed), ADMIN_OWNER_EMAIL, optional Zoho and Razorpay settings with the Razorpay webhook at API_URL/api/payments/webhook/razorpay, the deployed api/, and the client's deploy workflow. See the repository README.
Automatic releases
After the first setup, releases need no manual steps. A merge to main deploys what it changed, once CI passes on that commit:
| Change | Workflow | Release is complete when |
|---|---|---|
api/** | Deploy api | /auth/healthz on the deployed API answers |
client/** | Deploy client | the live page references the new build's script file |
CI or deploy workflows, .github/scripts/** | Both | both checks above pass |
Each deploy runs one at a time, in merge order, and can also be started manually. All settings live in the repository's GitHub production environment; add required reviewers to that environment to approve each release by hand.
Contributing: pre-merge checklist
The repository's pull request template carries a "Before merge" checklist instead of notices inside the app: review of privacy, terms, refund and pricing wording; review of topic content on sensitive topics such as Loss and Low mood; required settings present in the GitHub production environment (JOURNAL_KEY is never changed); platform deployed before the app when both change; running the manual API deploy when the API changed; and a test purchase with Razorpay test keys before live keys are used.