
Browser Support
!
Chrome | !
Firefox | !
Safari | !
Opera | !
Edge | !
IE |
--- | --- | --- | --- | --- | --- |
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8 ✔ |
NOTE
> This NPM Module is based on
express-generator.
> It will use
express, ejs, mysql. and using
MVC Pattern.
It is an npm module that I made for my convenience, and if you find a bug while using it because you are interested, I would appreciate it if you let me know. :)
Git : https://github.com/Positive-Conative/conative-nodejs
Npm : https://www.npmjs.com/package/conative-nodejs
Install
*
npm i -g conative-nodejs
Using
*
conative-nodejs [ Options ] -n [ Path/Dirname ]
* ex) conative-nodejs -n dirname
* ex) conative-nodejs -s -n /your/path/dirname
*
cd [ Path/Dirname ]
*
npm start
Options
* -n, --n <path/directory name> : Required fields
* -s, --strict : Use strict Mode.
* -v, -ver : Check version.
Directory Tree
> conative-nodejs -n helloworld
``
helloworld
├── package.json
└── src
├── app.js
├── bin
│ └── www
├── config
│ └── dbConnection.js
├── controllers
│ └── indexController.js
├── models
│ └── testDAO.js
├── routers
│ ├── index.js
│ └── test.js
├── services
│ └── indexService.js
└── views
├── error.ejs
└── index.ejs
``
Code Flow
> Router → Controller → Service → Model
* /router/index.js
* /controllers/indexController.js
* /services/indexService.js
* /models/testDAO.js