Skip to content

Repository files navigation

Zephlo Backend

NestJS API for the configurable multi-department inventory prototype.

Quick start

Docker (with frontend)

From the parent zephlo folder:

docker compose up --build

Local

npm install
cp .env.example .env
npx prisma migrate dev
npm run db:seed
npm run start:dev

API 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).

Demo flow for clients

  1. DepartmentsGET/POST /departments
  2. Custom fieldsGET/POST /departments/:id/fields
  3. ConnectionsGET/POST /connections (transfer routes + approval rules)
  4. StockGET/POST /departments/:id/items
  5. TransfersPOST /transfers, PATCH /transfers/:id/review
  6. ReportsGET /reports/overview

Seed data includes Kitchen, Bar, Central Stores with sample stock and connections.

Stack

  • NestJS 11, Prisma 6, SQLite (prototype; swap to PostgreSQL for production)
  • class-validator DTOs, global API envelope, tenant middleware

About

ERP system

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages