1.0.8 • Published 2 years ago
kiro-rvcgen v1.0.8
This is a beta version !
This module allows you to generate a node web app quickly based on mongoose models
All you have to do is create a models folder, put there your mongoose models, and execute the generator to generate controllers, routes, views based on model structure
Step 1 - run
npm i kiro-rvcgen
Step 2 - require the module in your generator.js
const generator = require("kiro-rvcgen").default ;
generator()
Step 3 - run the generator
before running this, make sure your models folder is setup with valid mongoose models
node generator
Step 4 - Modify config/db.js with your dayabase informations
Step 5 - run the server
node server
That's it !