Nestjs Boilerplate

screenshot of Nestjs Boilerplate

A NestJS Boilerplate project with Mongoose, Passport, JWT, Docker, SwaggerAPI.

Overview:

The NestJS Boilerplate is a project template designed for building scalable and production-ready REST APIs using the NestJS framework, which is a progressive Node.js framework. It provides a clean folder structure with basic CRUD operations and includes various features and libraries such as Docker support, MongoDB integration, Open API documentation, validation, testing, authentication, and authorization.

Features:

  • Docker support: Allows you to use Docker Compose to manage the containerized environment for the project.
  • MongoDB integration: Utilizes the @nestjs/mongoose and Mongoose libraries to easily integrate MongoDB into the application.
  • Open API documentation: Provides built-in support for generating API documentation using Swagger.
  • Validation: Uses the class-validator library to validate incoming requests and data.
  • Clean folder structure: Includes a basic clean folder structure with CRUD operations already implemented, providing a solid starting point for the development process.
  • Testing: Includes support for unit testing using Jest and Supertest for end-to-end testing.
  • Authentication and authorization: Implements authentication and authorization using Passport and JWT for secure user authentication and authorization.

Summary:

The NestJS Boilerplate is a project template that allows developers to quickly set up a scalable and production-ready REST API using the NestJS framework. It provides a range of features and libraries including Docker support, MongoDB integration, API documentation generation, validation, testing, and authentication/authorization. With a clean folder structure and basic CRUD operations already implemented, developers can save time and effort when starting a new project.