Skip to content

Instantly share code, notes, and snippets.

@evenchange4
Created September 24, 2012 06:31
Show Gist options
  • Save evenchange4/3774609 to your computer and use it in GitHub Desktop.
Save evenchange4/3774609 to your computer and use it in GitHub Desktop.
Use Express and Mongolab to create Todo-list on Heroku

Use Express and Mongolab to create Todo-list on Heroku

Step by step from command line by Michael Hsu

Quick start

Clone an express-todo-example code

$ git clone https://github.com/dreamerslab/express-todo-example.git mongolab-todo-list

Link MongoDB Hosting /db.js

  1. create a MongoLab Platform account
  2. get 0.5 GB Free
  3. To connect using a driver via the standard URI
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 趴的意外收穫
@evenchange4
Copy link
Author

hello, test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment