crudops
v2.1.3
Published
Your solution for simplifying working with tedious mongoDB/mongoose CRUD operations stuff like creating boilerplate files/stubs for model, controller, and router with some basic lines of code each in the corresponding directory through the command line,
Downloads
303
Readme
crudops
Your solution for simplifying working with tedious mongoDB/mongoose CRUD operations stuff like creating boilerplate files/stubs for model, controller, and router with some basic lines of code each in the corresponding directory through the command line, and you can customize them further as you prefer
Installation
npm install crudops
And in your project directory after adding it to node_modules folder run this to use the command of the package
sudo npm link crudops
Quick Start
(assuming we got no permissions, ⛔ we prefix commands with sudo) To have a model, just run
sudo crudops make:model Car
Custom arguments
You may specify an argument/flag/option to create extra files like a controller or a router file
- For a controller, run the same previous command appended by -c flag:
sudo crudops make:model Car -c
- For a router, run the same previous command appended by the -r flag:
sudo crudops make:model Car -r
- Finally, you can run all of them
sudo crudops make:model Car -cr
if you're in using linux OS, you wanna also run as default is root user:
sudo chown -R <your_username> models
sudo chown -R <your_username> controllers
sudo chown -R <your_username> routers
I hope you enjoy using/contributing to it 😇.