Use Express and Mongolab to create Todo-list on Heroku


Outline
  1. 1. Demo
    1. 1.1. Quick start
      1. 1.1.1. Clone an express-todo-example code
      2. 1.1.2. Link MongoDB Hosting /db.js
      3. 1.1.3. Deploy on Heroku
    2. 1.2. Reference

Demo

Quick start

Clone an express-todo-example code

1
$ git clone https://github.com/dreamerslab/express-todo-example.git mongolab-todo-list
  1. create a MongoLab Platform account
  2. get 0.5 GB Free
  3. To connect using a driver via the standard URI
1
mongoose.connect( 'mongodb://localhost/express-todo' );

Deploy on Heroku

Check another Michael’s gist.

Reference

  1. Express Todo Example
  2. 用 Express 和 MongoDB 寫一個 todo list
  3. MongoLab Platform
  4. [NodeJS] Use NoSQL Database mongoDB on Heroku - MongoLab Platform
  5. Deploy a Express.js project on Heroku
  6. Coding 趴的意外收穫