Getting started with Senior Care

Install Openfront Senior Care, configure it, and load the sample community.

Requirements

  • Node.js 20 or later
  • PostgreSQL
  • A Stripe key if you want card payments (optional)

Clone and install

git clone https://github.com/openshiporg/openfront-senior-care.git
cd openfront-senior-care
npm install

Configure .env

cp .env.example .env   # set DATABASE_URL and SESSION_SECRET
VariableNotes
DATABASE_URLPostgreSQL connection string. Required.
SESSION_SECRETSigns staff sessions. The other secrets below are derived from it when they are not set. Required.
PHI_AUDIT_SECRETKeys the PHI read audit.
PORTAL_MFA_SECRETSeals family portal two-step sign-in secrets.
RATE_LIMIT_SECRETHashes addresses for public rate limits.
TOUR_MANAGE_SECRET, WAITLIST_OFFER_SECRET, PORTAL_INVITE_SECRET, SHIFT_OFFER_SECRETSign the expiring links in tour, waitlist, invitation and shift-offer messages. At least 32 bytes.
TRUSTED_PROXY_HOPSSet to 1 behind Railway so the requester address comes from the proxy.
STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRETCard payments and cards on file. The mode follows the key.
SC_INFERENCE_SELF_HOSTED_KEY, SC_INFERENCE_AZURE_KEYKeys for the model providers used by the workflow builder and drafts.
OPENROUTER_API_KEY, OPENROUTER_MODELThe model used by the dashboard assistant.
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_FROMMail for password resets and invitations.
PUBLIC_SIGNUPS_ALLOWEDAllows staff self-signup when set.

Apply migrations and start

npm ci
npm run dev   # builds Keystone, runs migrations and starts Next.js

Create the first user

Open /dashboard/init and create the first user. Its role, Owner / Admin, gets every permission except break-glass, which is never granted by default.

Load the sample community

The setup cards in the dashboard load Maple Ridge Senior Living, Columbus, OH, in four sections. Every resident and figure is invented.

SectionWhat it loads
Operator, community, places and peopleThe community with its nursing units, licensed beds, residential wings and apartments, payers, roles with separated duties, staff, the US federal holiday calendar 2026-2028, the Ohio rule pack and the approval policies.
Residents, census history, sales and family portalAbout 200 residents, 60 days of census, representatives, family portal accounts, four weeks of signed-off midnight census, storefront copy and prices, referrals, a waitlist, tours and leads, and reviewed break-glass uses.
MDS, PDPM and Medicare Part AMDS 3.0 item sets V1.19.1 and V1.20.1, the FY2026 PDPM tables and rates, CY2026 coinsurance, and 12 Part A residents with completed 5-day assessments.
Workforce: staff, credentials and staffing targetsJob codes, 11 staff with verified licences and checks, the Ohio 2.5 hours-per-resident-day minimum and the operator targets, and the 2024 federal staffing rule recorded as repealed history.

Tests

npm run verify
SC_TEST_DATABASE_URL='postgresql://…?schema=vitest' npm test   # adds the database tests

On this page