Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

afeld/mongo_ruby_workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB + Ruby Workshop

Contents

Get Started

Make sure that MongoDB 2.x is installed and running, and run:

bundle install
ruby mongo_wrapper.rb
mongo

If your database is properly started, you will now be in the MongoDB shell. Now, within the shell, try the following commands to ensure the data is seeding properly:

> use mongo_ruby_demo;
switched to db mongo_ruby_demo
> db.users.count();
10

Great! You can take a look through mongo_wrapper.rb to get a sense of how the database is being populated. Now, we want to work through our exercises in the tests/ directory - look for the TODOs. Start up Guard to have them run automatically when you modify any Ruby files:

bundle exec guard

Now have at it! You can also check out the complete versions, if you need a reference.

Reference

About

Workshop for getting started using MongoDB with Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages