{"repo":"woowabros/nestjs-library-crud","free":true,"listed":false,"github":"https://github.com/woowabros/nestjs-library-crud","clone":"git clone https://github.com/woowabros/nestjs-library-crud.git","description":"Automatically generate CRUD Rest API based on NestJS and TypeOrm","language":"TypeScript","stars":230,"topics":["crud","nestjs","restful-api","typeorm","typescript","crud-generator","nest","pagination","decorator","swagger"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"@nestjs-library/crud English 한국어 This is a Typescript library that provides a NestJS decorator which automatically generates CRUD routes of a controller for given TypeORM entity. The decorator generates endpoints for not only create, retrieve one, retrieve many, update, delete but also upsert, recover and search operations for the entity. Features - Automatically generates CRUD routes for a given TypeORM entity - Automatically generates swagger for generated routes - 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 by using class-validator - Supports saving author information for mutating operations(Create, Update, Upsert, Delete and Recover) - Supports adding decorators, interceptors to each routes in Controller for customizing - Supports customizing swagger response Installation Usage Step 1: Define a TypeORM entity In order to use the Crud decorator, you need to define a TypeORM entity first. The following example defines a User entity with the following properties. Step 2: Create Service and Controller Create a NestJS service and controller with a TypeORM entity. The service needs to extend the CrudService class and the controller needs to implement the CrudController interface. Step 3: Add Service, Controller and TypeORM module to your module In your NestJS module, add Service, Controller and Ty","default_branch":null,"files":null,"tree":[],"storefront":"/r/woowabros","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/woowabros/nestjs-library-crud/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}