2.1.3 • Published 10 months ago

crudops v2.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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

1) For a controller, run the same previous command appended by -c flag:

sudo crudops make:model Car -c

2) For a router, run the same previous command appended by the -r flag:

sudo crudops make:model Car -r

3) 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 😇.

2.1.3

10 months ago

2.0.3

10 months ago

2.0.2

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.0.0

10 months ago