Nestjs Microservice Boilerplate

screenshot of Nestjs Microservice Boilerplate
nestjs

Boilerplate for a TCP Microservice in NestJS with TypeORM and tests

Overview:

This content is a product analysis for a software version called "Changelog v2.1.0." It includes updates and modifications to the software, such as changes in configuration files, folder structure, and module restructuring. The analysis also provides instructions on how to install and prepare the software for use.

Features:

  • Sample .env file to indicate required environment variables
  • Switch to truly private variables, instead of TypeScript modifiers
  • CustomResponse interface includes the namespace now
  • Core:
    • Upgrade to latest NestJS version (v7)
    • Folder structure update
    • Use cross-env to set the NODE_ENV for cross OS support
  • Modules:
    • Refactor utils to simply custom-response
    • CustomResponse interface is a generic now
    • New custom-response status WARNING = 'warning'
  • config.service:
    • Use process.cwd() instead of a relative path
    • Return the values from .env files or from process.env
  • database.module:
    • Receive each entity inside the entities instead of 'dist/**/*.entity{.ts,.js}'

Summary:

This product analysis focuses on the version 2.1.0 of the software. It provides information about the key features and updates introduced in this version, such as changes to configuration files, folder structure, and module restructuring. Additionally, the analysis includes instructions on how to install and prepare the software for use.

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.