Source Code address: github. comivonleenode. js-todolist recently learned about node. js. I will not talk about installation much. apt-getyum? Brew first installs npm. Other installations can use npm to install the directory tree ivon @ IvonMac ~ Datagithubnode. js-todolist $ tree. | -- README. md | -- app. js | -- db. js | -- p
Source Code address: https://github.com/ivonlee/node.js-todolist recently in node. js, installation is not much introduced, apt-get yum? Brew first installs npm. Other installations can use npm to install the directory tree ivon @ IvonMac ~ /Data/github/node. js-todolist $ tree. | -- README. md | -- app. js | -- db. js | -- p
Source Code address: https://github.com/ivonlee/node.js-todolist
I haven't introduced much about installing node. js recently. apt-get yum? Brew first installs npm. Other installations can be installed using npm.
Directory tree
ivon@IvonMac ~/data/github/node.js-todolist$tree.|-- README.md|-- app.js|-- db.js|-- package.json|-- public| `-- favicon.ico|-- routes| `-- index.js|-- utils.js`-- views |-- edit.ejs |-- index.ejs `-- layout.ejs3 directories, 11 files
Modules required by node. js
"Body-parser": "1.9.0", "cookie-parser": "1.3.3", cookie authentication "express": "4.9.5", mvc web Framework "ejs ": "1.0.0", ejs template engine "errorhandler": "1.2.0", error "method-override": "2.2.0", "ejs-locals": "1.0.2 ", ejs template engine "mongoose": "3.8.17", mongodb orm "morgan": "1.3.2", logger module "serve-favicon": "2.1.5 ", favicon ico "serve-static": "1.6.3", static files support "bootstrap": "3.3.0", front-end static style template "moment": "2.8.3", time module, various time conversions "jquery": "2.1.1", front-end jquery library "path": "0.4.9" mainly involves static directories such as public.
Deployment Project
git clone https://github.com/ivonlee/node.js-todolist.gitcd node.js-todolistnpm installnode app.js
Effect
Original article address: node. js + mongodb + ejs + bootstrap exercises CRUD to make a simple todolist. Thank you for sharing it with me.