A ready to go boilerplate for starting Backend Development project with NestJS. Focused on Simplifies the development process, enhancing efficiency and maintainability. Ensures comprehensive coverage of fundamental and common needs. Continuously striving to stay updated.
- Redis integration
- JWT Auth flow management
- Send email with nodemailer
- Feature access management
- Upload file with multer
- Winston logger integration
- Jest utilization
Clone the project
$ git clone < repository link >
Go to the project directory
$ cd nest-prisma-ts-boilerplate
Install dependencies
$ npm install
Run at port 3000
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
prisma
├── migrations # Database migrations
├── seeder # Database seeder
└── schema.prisma # Prisma schema
src
├── config # setting and constant value
├── core # features' resources
├── auth
├── guards # Auth protection (jwt check and feature access check)
└── strategies # Passport auth
└── < feature > # Another features
├── filters # Global Error handling
├── http-exception.filter.ts # HttpException class error handling
└── prisma-exception.filter.ts # PrismaClientKnownRequest class error handling
├── helper
├── decorator # Reusable and common decorators
└── dto # Reusable and common dto
├── lib # third party and separated modules/services
├── templates # static html/hbs e.g for email templating
├── types # Typescript data type definition
├── utils # Utility functions
└── main.ts # project entry point
test
If you have any feedback, please reach out me at email