Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phoet/mongodb_examples

Examples of Mongo Ruby Driver, Mongoid and MongoMapper running on MongoHQ.
https://github.com/phoet/mongodb_examples

Last synced: 26 days ago
JSON representation

Examples of Mongo Ruby Driver, Mongoid and MongoMapper running on MongoHQ.

Awesome Lists containing this project

README

        

h1. About

Examples of "Mongo Ruby Driver":http://api.mongodb.org, "Mongoid":http://mongoid.org/ and "MongoMapper":http://mongomapper.com/ running on a local MongoDB or "MongoHQ":http://mongohq.com.

"See it running":http://mongodb-examples.heroku.com/ on "Heroku":http://heroku.com/.

h2. Installation

Install "RVM":http://rvm.beginrescueend.com/ and "homebrew":http://mxcl.github.com/homebrew/


brew install mongo
mongo
> use test
> db.addUser('test', 'test')
> exit
export MONGOHQ_URL="mongodb://test:test@localhost:27017/test"
gem install bundler
bundle install
rackup

Some more information on "installing MongoDB and using the different MongoDB Drivers":http://blog.nofail.de/2010/07/mongo-ruby-driver-mongoid-and-mongomapper/.

h2. Resources

* Mongo Ruby Driver
** "driver documentation":http://github.com/mongodb/mongo-ruby-driver
** "connection help":http://docs.heroku.com/mongohq#using-mongo-ruby-driver
* Mongoid
** "project site":http://mongoid.org/
** "simple tutorial":http://rujmah.posterous.com/using-mongoid-without-rails
* MongoMapper
** "project site":http://mongomapper.com/
** "nice tutorial":http://railstips.org/blog/archives/2009/06/27/mongomapper-the-rad-mongo-wrapper/