DEV Community

Cover image for NestJS Boilerplate using Typescript Generics.
Brahim
Brahim

Posted on

NestJS Boilerplate using Typescript Generics.

Just finished coding a NestJS boilerplate project (and an explicative Article about it) using :

✔ MongoDB.

✔ TypeORM.

That provides :

✔ Abstract Base Module (Controller, Service, Entity and DTOS) that you can use for your modules.

✔ Two modules (category, product) mock and e2e tested.

✔ Ready to use APIs (CRUD, pagination, a powerful search API etc ..).

✔ A users module including a middleware.

✔ A mailer service using (MailJet) integrated with a handlebar .hbs template.

✔ A Postman Collection for every API.

✔ Pipes such as : Abstract validation pipe for objects, ObjectID validation pipe.

✔ Utils for finding by field, checking field uniqueness, custom error throwing etc..

✔ A logger middleware.

✔ Dev and prod environments.

✔ Dockerized app.

I wrote an article explaining step by step how this boilerplate was built and how you can use it efficiently.

You can access the Github repository to get the full project below and use it to your liking.

I'm open for your suggestions so feel free to give me your opinions 😀.

Top comments (0)