Nestjs Library Crud

screenshot of Nestjs Library Crud
express
nestjs

Automatically generate CRUD Rest API based on NestJS and TypeOrm

Overview:

The @nestjs-library/crud is a Typescript library designed for NestJS that aids in generating CRUD routes for a TypeORM entity. This library simplifies the process of creating endpoints for operations like creating, retrieving, updating, and deleting entity data. It also provides additional functionalities such as searching, pagination, sorting, and soft deleting, offering a comprehensive solution for managing RESTful APIs efficiently.

Features:

  • Automatically generates CRUD routes for a given TypeORM entity
  • Supports pagination, sorting, filtering, relation, searching, upserting, recovering, and soft deleting
  • Supports complex search criteria (LIKE, ILIKE, BETWEEN, IN, NULL, ?, @>, JSON_CONTAINS)
  • Supports strong validation using class-validator
  • Supports adding decorators and interceptors to customize routes in the Controller
  • Automatically generates Swagger documentation for the generated routes

Summary:

The @nestjs-library/crud library is a valuable tool for developers working with NestJS and TypeORM, as it simplifies the process of creating CRUD endpoints for managing entity data efficiently. With features such as automatic generation of routes, support for complex search criteria, pagination, and validation, this library streamlines the development of RESTful APIs. Additionally, the ability to customize routes and Swagger documentation makes it a versatile solution for building robust backend systems.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

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.