Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/phoet/mongodb_examples
- Owner: phoet
- Created: 2010-06-13T12:48:32.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-06-14T17:09:38.000Z (over 9 years ago)
- Last Synced: 2024-05-01T22:35:55.210Z (6 months ago)
- Language: Ruby
- Homepage: http://blog.nofail.de/2010/07/mongo-ruby-driver-mongoid-and-mongomapper/
- Size: 172 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.textile
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
rackupSome 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/