bms-cli-mg
v1.0.7
Published
backend mobile simplified
Downloads
13
Maintainers
Readme
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.