node-api-creator-cli
v1.0.1
Published
The npm package for generate node express back end MVC pattern application
Downloads
3
Readme
node-api-creator-cli
The npm package for generate node express back end MVC pattern application
Installation
$ npm i -g npm $ npm i --save node-api-creator-cli
Usage
Go to the folder where you want to create new project $ cd myFolder Then write the command $node-api-creator-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.
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 $ npm start
Example CRUD operation
Import post man collection from here https://www.getpostman.com/collections/cbbaf482b4ce9c27b031
Run and cheers