node-mvc-generator-cli
v1.0.6
Published
The npm package for generate node express back end MVC pattern application
Downloads
3
Readme
node-mvc-generator-cli
The npm package for generate nodejs and reactjs (backend, frontend and full stack) applications
Installation
$ npm install node-mvc-generator-cli -g
Usage
Go to the folder where you want to create new project $ cd myFolder Then write the command $node-mvc-generator-cli
? please choose the project which you like to generate (Use arrow keys)
❯ node-express-backend
Just press enter
? Enter Project Name:
Enter your project name. then press enter. A brand new project will generated. Then go to your project and run this command $ npm install
Then install express $ npm install express -s
Config db
Now create database and add database credentials in database/index.js. You can find a dami database in /databse folder named nodeTest.sql
Then run your project by $ node index.js
Example CRUD operation
Import post man collection from here https://www.getpostman.com/collections/cbbaf482b4ce9c27b031
Run and cheers