Skip to content

A ready to go boilerplate for starting Backend Development project with NestJS.

Notifications You must be signed in to change notification settings

Diaz-adrianz/nest-prisma-ts-boilerplate

Repository files navigation

Nest Prisma TS Boilerplate

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.

Todos

  • Redis integration
  • JWT Auth flow management
  • Send email with nodemailer
  • Feature access management
  • Upload file with multer
  • Winston logger integration
  • Jest utilization

Run Locally

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

Tech Stack

Project Structure

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

Authors

Feedback

If you have any feedback, please reach out me at email

License

MIT License

About

A ready to go boilerplate for starting Backend Development project with NestJS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published