@d-lab/node-rest-cli
v0.7.1
Published
CLI to generate code for your REST API
Downloads
27
Readme
REST cli
CLI commands to build your REST API with fewer efforts.
Installation
npm i @d-lab/node-rest-cli --save-dev
Usage
Generate your models based on your migration file
Replace 01_create_users_table by your own migration files
npx add-model 01_create_users_table
Generate
- interfaces/{model}.interface.ts
- models/{model}.model.ts
- services/{model}.service.ts
Update
- interfaces/index.ts
- models/index.ts
- services/index.ts