Getting started with Vet Clinic

Install Openfront Vet Clinic, configure it, and load the sample practice.

Requirements

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

Clone and install

git clone https://github.com/openshiporg/openfront-vet-clinic.git
cd openfront-vet-clinic
npm install

Configure .env

cp .env.example .env
# set DATABASE_URL and SESSION_SECRET
VariableNotes
DATABASE_URLPostgreSQL connection string. Required.
SHADOW_DATABASE_URLShadow database used by npm run migrate:gen.
SESSION_SECRETSigns staff sessions, pay links and client sessions. Required.
STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRETCard payments. The mode follows the key.
OPENROUTER_API_KEY, OPENROUTER_MODEL, OPENROUTER_MAX_TOKENSThe model used by the assistant.
SCRIBE_STT_URL, SCRIBE_STT_API_KEY, SCRIBE_STT_MODELSpeech-to-text for the scribe.
SCRIBE_LLM_URL, SCRIBE_LLM_API_KEY, SCRIBE_LLM_MODELAny OpenAI-compatible chat endpoint that drafts the scribe's record blocks.
EZYVET_API_URL, EZYVET_PARTNER_ID, EZYVET_CLIENT_ID, EZYVET_CLIENT_SECRET, EZYVET_SITE_UIDezyVet API import.
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_FROMMail for staff password resets.
PUBLIC_SIGNUPS_ALLOWEDAllows staff self-signup when set.

Apply migrations and start

npm install
npm run dev    # builds Keystone, applies migrations, starts Next.js

Create the first user

Open /dashboard/init and create the first owner. Its role, Owner / Medical Director, gets every permission except break-glass.

Load the sample practice

The onboarding card loads Cedar Creek Animal Hospital (Sacramento, CA) and its Elk Grove satellite in three sections:

SectionWhat it loads
Practice, people and policy packsLocations, staff with licences and DEA registrations, roles, the federal and California policy packs and the federal calendar for 2026 to 2028.
Clients, patients, schedule and the AI receptionistSpecies, rooms, appointment types (surgery and dental are requests), households and patients, a triage protocol, the knowledge base, referral hospitals and the receptionist, with voice off until a second person approves.
In-house lab catalogIn-house analytes and reference ranges.

The sample has 20+ staff, about 400 households and 640 patients. Every name, phone number and address is fictional, and phones use the 916-555-01xx range. Seeded staff cannot sign in until an owner sets their password from Team & licences.

Tests

npm run verify

Database tests need VC_TEST_DATABASE_URL.

On this page