Nestjs Boilerplate

screenshot of Nestjs Boilerplate

A boilerplate template for nestjs. using Mongodb, Redis, Swager, Passport. and Google Oauth2 setup.

Overview

The Nest.js boilerplate is a template that helps users build their own Nest.js MongoDB API using TypeScript 5. It eliminates the need for boilerplate code, allowing users to start creating their project immediately. The template supports various features such as authentication, session storage, integration testing, and more. It also follows ES6/ES7 features and the Airbnb JavaScript Style Guide.

Features

  • Authentication: Supports passport local strategy, JWT authentication, and passport Google 2.0 strategy.
  • Session Storage: Provides options for storing session data in MongoDB and Redis.
  • Integration testing: Includes tools like Mocha, Chai, and Supertest for integration testing.
  • ES6/ES7 features: Utilizes the latest features of JavaScript for enhanced development experience.
  • Eslint and Prettier: Follows the Airbnb JavaScript Style Guide and ensures code quality with ESLint and Prettier.
  • Docker: Facilitates containerization of the application for easy deployment.
  • Jest testing framework: Includes Jest for comprehensive unit testing.
  • Typescript support: Allows coding with static type checking for better reliability.
  • MongoDB and Redis admin panel: Provides administration panels for managing MongoDB and Redis.

Summary

The Nest.js boilerplate is a powerful tool for building Nest.js MongoDB APIs quickly and efficiently. It provides a wide range of features such as authentication, session storage, integration testing, and more. The template follows modern JavaScript standards and offers flexibility for customization. By eliminating boilerplate code, users can focus on building their projects without any hassle.