NestJS API for the configurable multi-department inventory prototype.
From the parent zephlo folder:
docker compose up --buildnpm install
cp .env.example .env
npx prisma migrate dev
npm run db:seed
npm run start:devAPI base: http://localhost:3000/api/v1
Health (no tenant header): GET /api/v1/health
All other routes require tenant context via header X-Tenant-Slug: demo (default from .env).
- Departments —
GET/POST /departments - Custom fields —
GET/POST /departments/:id/fields - Connections —
GET/POST /connections(transfer routes + approval rules) - Stock —
GET/POST /departments/:id/items - Transfers —
POST /transfers,PATCH /transfers/:id/review - Reports —
GET /reports/overview
Seed data includes Kitchen, Bar, Central Stores with sample stock and connections.
- NestJS 11, Prisma 6, SQLite (prototype; swap to PostgreSQL for production)
- class-validator DTOs, global API envelope, tenant middleware