crosscode: the Church App (app.sh, add, demo) and the App's changelog

scripts/products/app.sh and app.env.template.json; app in
SUPPORTED_PRODUCTS; crosscode add <church> app (Accounts first);
crosscode demo <church> app --profile <s>, and the App's turn, last,
in a whole demo scenario. app.bats and demo.bats; app.sh linted.
The full bats suite wasn't run (stopped for low memory); app.bats and
demo.bats pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 16:11:41 +02:00
co-authored by Claude Opus 5.5
parent acd3b259a1
commit 71f2f02ee5
11 changed files with 407 additions and 25 deletions
+10 -3
View File
@@ -8,7 +8,8 @@ and notification settings need a sign-in through the church's Accounts. The admi
**State:** being built (from 2026-12-01) on the branch `feat/app-scaffold`, which is merged into
main only when `app@1.0.0` is done (main keeps a placeholder until then). Not released;
`app@1.0.0` is tagged when the plan is built. Done so far (the foundation, plan §1, §2, §10, §12, the House of Prayer, §3, prayer requests, §4, and announcements, devotionals and events, §5–§7):
`app@1.0.0` is tagged when the plan is built. Done so far (plan §1–§12: the foundation, the House of Prayer, prayer requests, announcements,
devotionals and events, email and WhatsApp, the admin, and the demo scenarios):
- **Backend:** Express + Prisma + pg-boss (ES modules, as the Website). Registers with the Hub
(`CCP-` licence key, product `app`) and sends the heartbeat with the active-member band the App
@@ -52,8 +53,14 @@ main only when `app@1.0.0` is done (main keeps a placeholder until then). Not re
(`backend/src/media/`); backups of the database and the images (`backend/src/backups/`); the
church export's `app` part (`backend/scripts/export-church.ts`).
**Still to come** (plan §12–§15): the demo church and scenarios, `scripts/products/app.sh`, e2e,
axe and Lighthouse.
- **Demo scenarios** (§12, `backend/src/demo/`): `npm run demo` loads Acacia Hill; `npm run demo --
--profile <scenario>` any of the eight demo churches (`--list`), around the same people as
Accounts. On a server: `crosscode demo <church> app --profile <s>`, or the whole scenario with
`crosscode demo <church> --scenario <s>` (`scripts/products/app.sh`; `crosscode add <church> app`).
The demo devotionals' Bible text comes only from `backend/scripts/demo-passages.ts`, which copies
it from the public-domain KJV and BSB files (not in the repo): never type or edit it.
**Still to come** (plan §14–§15): e2e, axe and Lighthouse.
- `backend/`: `npm run dev`, `npm test` (Node's test runner through tsx), `npm run build`. The
schema is in `prisma/schema.prisma`.