Go to file
Mihir Motiyani 4fbe1391b8 Merge pull request 'feat/identity-access' (#1) from feat/identity-access into main
Reviewed-on: #1
2026-09-09 19:30:05 +05:30
.gitea ci: verify identity on PostgreSQL and document phase 1B operations 2026-09-08 21:24:49 +05:30
docs ci: verify identity on PostgreSQL and document phase 1B operations 2026-09-08 21:24:49 +05:30
prisma feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
scripts feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
src feat(rbac): enforce scoped administration and audited permission changes 2026-09-08 21:24:48 +05:30
test feat(rbac): enforce scoped administration and audited permission changes 2026-09-08 21:24:48 +05:30
.env.example feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
.gitattributes feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
.gitignore docs: define phased backend roadmap and engineering standards 2026-09-08 20:33:57 +05:30
.prettierignore feat(platform): add validated configuration and Prisma database foundation 2026-09-08 20:33:58 +05:30
.prettierrc.json feat(platform): add validated configuration and Prisma database foundation 2026-09-08 20:33:58 +05:30
README.md ci: verify identity on PostgreSQL and document phase 1B operations 2026-09-08 21:24:49 +05:30
jest.config.cjs feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
package.json feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
pnpm-lock.yaml feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30
pnpm-workspace.yaml feat(platform): add validated configuration and Prisma database foundation 2026-09-08 20:33:58 +05:30
prisma.config.ts feat(platform): add validated configuration and Prisma database foundation 2026-09-08 20:33:58 +05:30
tsconfig.build.json feat(platform): add validated configuration and Prisma database foundation 2026-09-08 20:33:58 +05:30
tsconfig.json feat(identity): add account schema, security primitives and migrations 2026-09-08 21:24:48 +05:30

README.md

Mani Candles backend

Phase 1A provides the service foundation. Phase 1B adds staff account provisioning, authentication, sessions, recovery, configurable RBAC, and audit records. Commerce APIs follow in Phase 1C.

Setup

Use Node 24 LTS and pnpm 11.19.0. Copy .env.example to .env and set a PostgreSQL connection URL. Never commit credentials.

pnpm install --frozen-lockfile
pnpm db:generate
pnpm db:deploy
pnpm check
pnpm build
pnpm start

Development: run pnpm dev to compile on changes and pnpm start:watch in a second terminal after the first compilation. HTTP endpoints: GET /api/v1/health/live and GET /api/v1/health/ready. Readiness returns 503 when the database query fails. Health responses deliberately omit infrastructure details.

Layout

  • src/config: validated configuration, injected once.
  • src/database: Prisma connection lifecycle and database probes.
  • src/health: controller and application service.
  • prisma/migrations: ordered, committed SQL migrations.
  • test: configuration, lifecycle, and HTTP tests.
  • docs: delivery roadmap and engineering workflow.

Production must use a managed secret store, TLS termination, a restricted database account, backups, and the deployment migration command. Do not expose this foundation as a completed commerce platform.

Identity: see API contract and setup/release guide.