A todoList using express and MongoDB.
用express框架和MongoDB,配合ejs模版引擎编写的todoList项目。
See MongoDB Manual
- windows
Just download exe file and install MongoD as a Service.
- mac
Download tgz file and do some settings.
# download tgz file
tar -zxvf mongodb-macos-x86_64-4.2.6.tgz
sudo cp /path/to/the/mongodb-directory/bin/* /usr/local/bin/
# create db data path and log path
sudo mkdir -p /usr/local/var/mongodb
sudo mkdir -p /usr/local/var/log/mongodb
# run mongodb service
sudo mongod --dbpath /usr/local/var/mongodb --logpath /usr/local/var/log/mongodb/mongo.log --fork
The default mongodb port is 27017.
npm i
npm start
Open browser at http://localhost:3000.