Skip to content

zahidhasanaunto/nestjs-crud-utils

Repository files navigation

NestJS CRUD Utils

for RESTful APIs built with NestJs

We believe that everyone who's working with NestJs and building some RESTful services and especially some CRUD functionality will find nestjs-crud-utils microframework very useful.

Features

  • 🔌 Super easy to install and start using the full-featured controllers and services 👉

  • 🐙 DB and service agnostic extendable CRUD controllers

  • 🔎 Reach query parsing with filtering, pagination, sorting, relations, nested relations, cache, etc.

  • 🔭 Framework agnostic package with query builder for a frontend usage

  • 👾 Query, path params and DTOs validation included

  • 🎬 Overriding controller methods with ease

  • 🔧 Tiny config (including globally)

  • 🎁 Additional helper decorators

  • ✏️ Swagger documentation

Install

npm i nestjs-crud-utils class-transformer class-validator @nestjs/typeorm typeorm

Documentations

  • Controller - provides @Crud() decorator for endpoints generation, global configuration, validation, helper decorators (docs)
  • Request Options - provides a full range of path and query parameters parsing/validation to help you build rich RESTful APIs (docs)
  • Service - provides a CRUD service for relational databases build with TypeORM (docs)

License

MIT