nest-json-api-for-typeorm

JsonAPi Plugin for NestJs


License
MIT
Install
npm install nest-json-api-for-typeorm@0.0.1

Documentation

New version with support TypeOrm 3.x.x and NestJs 9.x.x here

NPM Version Package License NPM Downloads Commitizen friendly Coverage Badge

Json API plugin for NestJS framework

Tools to implement JSON API, such as, end point, query params, body params, validation and transformation response.

Description

This is the plugin that works upon TypeOrm library as a main database abstraction layer tool. Module automaticly generates API according to JSON API specificaton from the database structure (TypeORM entities). It support such features as requests validation based on database fields types, request filtering, endpoints exdending, data relations control and much more. Our module significantly reduces the development time of REST services by removing the need to negotiate the mechanism of client-server interaction and implementing automatic API generation without the need to write any code.

Installation

$ npm install
$ npm run typeorm:run
$ npm run db:seed

Running the app

# development
$ npm run start

# watch mode
$ ng serve

Test

# unit tests
$ nx affected:test

# test coverage
$ nx affected:test --coverage

License

The plugin is MIT licensed.