model-controller-generator
v1.2.3
Published
## Introduction
Downloads
10
Maintainers
Readme
Model Controller Generator
Introduction
Model Controller Generator is a tool to easily generate models, controllers, and routes for your MongoDB projects using Mongoose.
Installation
To install the package, use the following command:
npm install model-controller-generator
To use the generator, add the following script to your package.json:
"scripts": { "crud": "node ./node_modules/model-controller-generator/index.js" }
then : npm run crud
Configuration
Ensure you have the following dependencies installed in your project for minimal config :
Mongoose Express Cors Dotenv
npm install mongoose express cors dotenv
Here is an example of a project structure that utilizes the generator: