@vcita/infra-nestjs
v2.20.0
Published
Nest TypeScript repository containing infrastructure for new vcita services
Downloads
352
Keywords
Readme
Node Package - Infra NestJS
This package contains the infrastructure definition and code conventions boilerplate for vCita's Node.js services implemented by NestJS framework.
It is coded in TypeScript, to learn more on TypeScript and follows the NestJS as framework, A progressive Node.js framework for building efficient, reliable and scalable server-side applications.
Content
- Bootstrapping a NestJS based framework
- Configurations definitions and connections
- DB connection
- Redis
- Queuing system
- Logging
- Timeouts
- vCita's responses and errors standards
- Decorators for easily swaggerizing in the standard format
- Interceptor applying the standard before returning answer
- Global exception handling
- Logging utils
- Logger middleware
- Infra logger class
- Timeouts interceptor
- Health check controller
- Common enums
- Base classes
- DB entity & repository
- Custom exceptions
- Processor (worker)
- Testing bases
- Other utils
- ORM config generator
- Swaggerizer 3-to-2
Versioning
Versioning of this package follows the Semantic Versioning standards.
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes.