apps/app (not released; app@1.0.0 is built in slices, APP-1.0-PLAN §15): - backend (Express, Prisma, pg-boss, as the Website): the Hub client (CCP-, product app, the active-member band in the heartbeat), links and church.changed, sign-in through Accounts (everyone a Member; 8 days renewed up to 90; every role only with 2FA; the first Owner from HUB_ADMIN_EMAIL), Accounts' user.updated/export/deleted, active members once a day, modules on and off, GET /api/v1/app. Migration init. - frontend (Next.js 16): header, tab bar, footer, manifest and icons from the church profile, service worker, Add to home screen, Me, the admin's first dashboard. - env.template.json, PM2 template, README, CHANGELOG, WHATS-NEW; 27 tests. Docs: the Hub runs 2.26.1 with two years of Cross Code's devotionals; an App gets 2 weeks, today included. HANDOVER lists the App's slices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.9 KiB
JSON
25 lines
1.9 KiB
JSON
{
|
|
"schema": "crosscode.env-template/1",
|
|
"product": "app",
|
|
"files": {
|
|
"backend/.env": [
|
|
{ "name": "NODE_ENV", "layer": "generated", "required": true, "description": "production" },
|
|
{ "name": "PORT", "layer": "install", "from": "{apiPort}", "required": true, "description": "The backend's port (from the Hub's port list)" },
|
|
{ "name": "DATABASE_URL", "layer": "generated", "required": true, "description": "Made on the server with a new password; never leaves it" },
|
|
{ "name": "APP_SECRET", "layer": "generated", "required": true, "description": "Signs cookies and links, encrypts stored secrets: never change it" },
|
|
{ "name": "APP_URL", "layer": "install", "from": "https://{domain}", "required": true, "description": "The public address (app. or the Cross Code address)" },
|
|
{ "name": "TRUST_PROXY", "layer": "server", "required": true, "description": "Behind frp: loopback" },
|
|
{ "name": "APP_TIMEZONE", "layer": "install", "default": "Africa/Johannesburg", "description": "Until the church profile says its own" },
|
|
{ "name": "HUB_URL", "layer": "defaults", "default": "https://hub.crosscode.co.za" },
|
|
{ "name": "HUB_PUBLIC_KEY", "layer": "defaults", "description": "Only for a Hub other than production" },
|
|
{ "name": "HUB_LICENCE_KEY", "layer": "install", "description": "A Hub install registers by itself with this (CCP-…)" },
|
|
{ "name": "HUB_ADMIN_NAME", "layer": "install" },
|
|
{ "name": "HUB_ADMIN_EMAIL", "layer": "install", "description": "The first person to sign in with this address (through Accounts, verified) becomes the Owner" },
|
|
{ "name": "JOBS_ENABLED", "layer": "defaults", "default": "true" }
|
|
],
|
|
"frontend/.env.production": [
|
|
{ "name": "APP_API_URL", "layer": "install", "from": "http://127.0.0.1:{apiPort}", "required": true, "description": "Where the pages reach the backend on this server" }
|
|
]
|
|
}
|
|
}
|