Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 849 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 849 Bytes

NestJS Base Source With Prisma (Using Repository Pattern)

A base NestJS project that I create to easily apply to almost all Backend Project With Prisma.

  • This base source use Repository Pattern: Controller -> Service -> Repository -> Model

  • Using Class Generic so will be easy to use

  • Using Prisma ORM (TypeORM, Sequelize can do the same, just change a little).

  • Using route concept like Express to manage route easily .

  • Some of general CRUD function will be on Repository/base and Service/base, new repository or service just extend it.

  • You can apply middleware for specific controller/endpoint (Set this on /Module)

Run:

npm run start:dev //development enviroment

npm run start:prod //development enviroment

npm run start:debug //debug enviroment

Hope this repo will help you

If you dont mine, please give me a star ⭐