- Set environment variables (see
.env.example). - Run the production server:
npm start
npm run build- Build production servernpm run prepare:prod- Prepare production servernpm start- Start production servernpm run dev- Start development servernpm run lint- Run ESLintnpm run format- Format code with Prettier
- ESLint config:
eslint.config.js - Prettier config:
.prettierrc
- Swagger UI available at
/api-docswhen running
- See
.env.exampleorsrc/config/env.tsfor required variables
src/config- Configuration filessrc/controllers- Route handlerssrc/services- Business logicsrc/routes- Express routerssrc/middleware- Express middlewaresrc/validators- Joi validation schemassrc/types- Custom typessrc/utils- Utilitiesprisma- Prisma schema and migrations
- Uses Prisma ORM
- Configure database in
.env
For more details, see inline code comments and Swagger API docs.