Skip to content

Development setup

Use Node.js with npm and install uv for the documentation toolchain. Install project dependencies, create or update the local schema, then start the app:

npm ci
npm run db:push
npm run dev

db:push creates the complete local development schema. npm run db:migrate applies the checked additive production migrations to an existing database.

The app is available from the Vite development server. Documentation is exposed from the same origin at /docs/; MkDocs is started by npm run dev and Vite proxies that path for live reload.

The default app and documentation ports are 5173 and 8000. Set VITE_PORT and DOCS_PORT when either is already in use.

The default data locations are data/health.db for SQLite and data/files for uploaded blobs. Override DATABASE_URL and FILE_STORE only when intentionally changing local storage locations.

Copy .env.example when local overrides are needed. The production adapter and application both cap an individual medical-file upload at 128 MiB. Keep BODY_SIZE_LIMIT aligned with MAX_INSTANCE_BYTES in src/lib/server/imaging/limits.ts.