bms-cli-mg

1.0.7 • Public • Published

bms-cli

bms-cli-mg is a cli to help fastify-restapi-prisma-boilerplate user by simplify some action in the template.

Installation

Use the package manager npm to install bms-cli-mg. Cli need to be installed globally

npm install -g bms-cli-mg

Usage

Create new backend project from fastify-restapi-prisma-boilerplate, then cd to your project.

bms backend:create:project <project_name>

Add Model sets

bms backend:g:model <model_name>

Add new route method for existing model Available method: [POST], [GET], [PUT], [DELETE]

bms backend:add:route <model_name> <method> <route_name>

Add socket message handler

bms backend:g:sochandler <socket_message_name>

Synchronies database (for more detail go to Prisma)

bms backend:db:sync

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Package Sidebar

Install

npm i bms-cli-mg

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

8.73 kB

Total Files

17

Last publish

Collaborators

  • malucard