-
-
Notifications
You must be signed in to change notification settings - Fork 543
Home
NestJS is probably one of the best things that happened to Node.js community a couple of years ago. It was a missing part that provides a truly important architectural solution for a wide range of backend development aspects. But, despite the fact that it allows creating RESTful applications efficiently, an important CRUD scaffolding functionality that is present in many other HTTP frameworks was missing. That's why Nestjsx/crud came out. And we hope you'll find it very useful.
The project follows monorepository structural practice and contains several packages:
-
@nestjsx/crud - core package which provides
@Crud()
decorator for endpoints generation, global configuration, validation, helper decorators (docs) -
@nestjsx/crud-typeorm - TypeORM package which provides base
TypeOrmCrudService
with methods for CRUD database operations for relational databases (docs) -
@nestjsx/crud-request - request builder/parser package wich provides
RequestQueryBuilder
class for a frontend usage andRequestQueryParser
that is being used internaly for handling and validating query/path params on a backend side (docs)
-
Clone this repository.
-
Run preparational scripts:
docker-compose up -d
yarn bootstrap
yarn build
yarn test
-
Clone and prepare an example project.
-
Start a project:
yarn db:prepare:typeorm
yarn start:typeorm
-
Use
http://localhost:3000/docs
to try it out. -
the code of example projects can be found under integration folder.