Frontend for clinic-registry.
This project was built as a diploma work project at Russian-Tajik (Slavonic) University, paired with the clinic-registry-backend service.
5)v4pnpm as package managerpnpm (packageManager: [email protected])Minimal .env:
API_BASE_URL=http://localhost:8000
API_BASE_URL defaults to http://localhost:8000 if unset. Auth uses an access_token cookie issued by the backend's login flow.
Install dependencies:
pnpm install
Start the dev server:
pnpm dev
The app is served on http://localhost:5173 by default.
Production build:
pnpm build
pnpm preview
Run before opening a PR:
pnpm check # svelte-check against tsconfig.json
pnpm lint # ESLint (lint:fix to autofix)
pnpm format # Prettier (format:fix to write)
src/
├── lib/
│ ├── components/ui/ # shadcn-svelte primitives (bits-ui)
│ ├── features/ # Feature modules (patients, medical-records, procedures, ...)
│ ├── schemas/ # Zod schemas shared across features
│ ├── shared/api/ # API client + per-resource endpoints
│ ├── server/ # Server-only config
│ └── layout/ # Sidebar and shared layout pieces
└── routes/ # SvelteKit routes
Distributed under the MIT License. See LICENSE for details.