A clean, production‑ready Node.js + TypeScript + Express + Prisma API microservice.
- Prisma ORM (MySQL/PostgreSQL)
- Clean layered architecture (Controller → Service → Repository)
- Joi validations
- Global error handling
- Async wrapper middleware
- Type-safe route handling
- Nodemon + ts-node development workflow
msg-portal-api-service
│
├── prisma
│ ├── migrations
│ └── schema.prisma
│
└── src
├── config
│ └── prisma.ts
├── controllers
│ └── restaurants.controller.ts
├── repositories
│ └── restaurants.repository.ts
├── services
│ └── restaurants.service.ts
├── validations
│ └── restaurants.validation.ts
├── middleware
│ ├── asyncHandler.ts
│ ├── validate.ts
│ └── errorHandler.ts
├── routes
│ └── restaurants.routes.ts
├── app.ts
└── server.ts
npm installnpm run prisma:generatenpm run prisma:devnpm run devnpm run buildnpm start