imouton / hello-mongoose

MongoLab MongoDB Mongoose Node.js Demo on Heroku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello-mongoose: Mongoose.js: elegant MongoDB object models for Node.js.

MongoDB and Node.js are often used together because of their shared use of Javascript and its Object Notation (JSON). Mongoose is a popular helper library that provides a more rigorous modeling environment for your data, enforcing a little bit more structure as needed, while still maintaining flexibility that makes MongoDB powerful. In this article, you make a connection to a hosted MongoDB instance at add-on provider MongoLab with Mongoose and model a simple object.

Deployment

To deploy the app to Heroku you can use this one-click deploy link or follow these steps:

  1. git clone git://github.com/mongolab/hello-mongoose.git && cd hello-mongoose
  2. heroku create
  3. heroku addons:add mongolab
  4. git push heroku master
  5. heroku open

License

MIT Licensed

About

MongoLab MongoDB Mongoose Node.js Demo on Heroku