Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8 ✔ |
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
-
npm i -g conative-nodejs
-
conative-nodejs [ Options ] -n [ Path/Dirname ]
- ex) conative-nodejs -n dirname
- ex) conative-nodejs -s -n /your/path/dirname
- ex) conative-nodejs -n dirname
-
cd [ Path/Dirname ]
-
npm start
- -n, --n <path/directory name> : Required fields
- -s, --strict : Use strict Mode.
- -v, -ver : Check version.
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
Router → Controller → Service → Model
- /router/index.js
- /controllers/indexController.js
- /services/indexService.js
- /models/testDAO.js