Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iboard/rugl-009
Example Code for RUGL #9 Lightning Talk Mongo
https://github.com/iboard/rugl-009
Last synced: 16 days ago
JSON representation
Example Code for RUGL #9 Lightning Talk Mongo
- Host: GitHub
- URL: https://github.com/iboard/rugl-009
- Owner: iboard
- Created: 2014-03-12T08:48:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-12T14:07:10.000Z (almost 11 years ago)
- Last Synced: 2024-12-12T10:48:47.965Z (22 days ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This is the example-code of my RUGL#9 Lightning Talk
Mar 12rd, 2014rspec -f d spec/
## Step 0
Start a plain ruby something with
* Ruby
* Rspec
* SimpleCov
* (Yard)in place.
## Step 1 (see patches/001_simple_mongo_setup)
Add MongoID to your ruby-project
## Step 2 (002 Add the 'Entity')
Defines a simple Ruby-Object without persistence yet.
## Step 3 (003 add accessors)
Still no persistence, tho we define the 'layer' for
the repository-class## Step 4 (004 store and load from mongo)
Implement the repository-class to use Mongoid::Document
# Links
* [Mongo DB](http://mongodb.org)
* [Mongo ID](http://mongoid.org)
* [Mongo Videos](http://youtu.be/ZbeilwSkt1s)
* [Railscast](http://railscasts.com/episodes/238-mongoid)
*
* [RailsApp: Rails/Device/Mongoid](http://railsapps.github.io/tutorial-rails-mongoid-devise.html)
* [RailsApps: Rails/OAuth/Mongoid](http://railsapps.github.io/tutorial-rails-mongoid-omniauth.html)
* [MongoDB Schema Design](http://www.mongodb.com/presentations/webinar/mongodb-schema-design-principles-and-practice)
* [Schema Design](http://www.slideshare.net/friedo/data-modeling-examples)