Prime Nestjs

screenshot of Prime Nestjs
nestjs

Production-ready NestJS boilerplate featuring JWT authentication, TypeORM, RBAC, Swagger, and Docker support. Built for enterprise-grade Node.js applications

Overview:

The NestJS Boilerplate is an open-source project that provides a starting point for building Node.js applications using NestJS. It includes several key features such as TypeScript support, PostgreSQL integration, JWT authentication, and more. The boilerplate also comes with additional tools and configurations such as Dotenv for environment variables, RBAC and CBAC for authorization, TypeORM for interacting with databases, Swagger for API documentation, Docker Compose for container orchestration, and secure HTTP headers with Helmet. Setting up the boilerplate is straightforward, requiring only the cloning of the repository and installation of dependencies before starting development.

Features:

  • NestJS: Built with the latest version of NestJS framework.
  • TypeScript: Provides type checking and improved developer productivity.
  • Dotenv: Supports the usage of environment variables for configuration.
  • Authentication: Supports JWT and RSA256 authentication.
  • Authorization: Implements RBAC and CBAC for fine-grained access control.
  • TypeORM: A powerful ORM (Object-Relational Mapping) for simplified database interaction.
  • PostgreSQL: Integration with an open-source relational database.
  • Configuration: Centralized configuration management with a single config file.
  • Swagger: Automatic API documentation generation.
  • Docker Compose: Provides container orchestration for easier deployment.
  • Helmet: Implements secure HTTP headers for enhanced security.
  • Insomnia: Includes Insomnia configuration file for endpoints.
  • ESLint: Pluggable JavaScript linter for code quality enforcement.
  • Prettier: Opinionated code formatter for consistent code styling.
  • Commitlint: Linting for conventional commit messages.
  • Code Scanning: Code scanning capabilities with CodeQL for improved security.

Summary:

The NestJS Boilerplate provides a solid foundation for developing server-side applications with Node.js using the NestJS framework. It comes with a range of features and tools such as TypeScript support, PostgreSQL integration, JWT authentication, RBAC and CBAC authorization, TypeORM for simplified database interaction, Swagger for API documentation, and Docker Compose for container orchestration. The boilerplate also includes pre-configured linting tools, secure HTTP headers, and additional utilities such as Insomnia configuration. Getting started is easy with a simple cloning of the repository and installation of dependencies. With the NestJS Boilerplate, developers can jumpstart their projects and focus on building their next great idea.

nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.