Ruby and MongoDB Web Development Beginner’s Guide
- Length: 332 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2012-07-25
- ISBN-10: 1849515026
- ISBN-13: 9781849515023
- Sales Rank: #3939827 (See Top 100 Books)
Create dynamic web applications by combining the power of Ruby and MongoDB
Overview
- Step-by-step instructions and practical examples to creating web applications with Ruby and MongoDB
- Learn to design the object model in a NoSQL way
- Create objects in Ruby and map them to MongoDB
In Detail
MongoDB is a high-performance, open source, schema-free document-oriented database. Ruby is an object- oriented scripting language. Ruby and MongoDB are an ideal partnership for building scalable web applications.
Ruby and MongoDB Web Development Beginner’s Guide is a fast-paced, hands-on guide to get started with web application development using Ruby and MongoDB. The book follows a practical approach, using clear and step-by-step instructions and examples in Ruby to demonstrate application development using MongoDB.
The book starts by introducing the concepts of MongoDB. The book teaches everything right from the installation to creating objects, MongoDB internals, queries and Ruby Data Mappers.
You will learn how to use various Ruby data mappers like Mongoid and MongoMapper to map Ruby objects to MongoDB documents.
You will learn MongoDB features and deal with geo-spatial indexing with MongoDB and Scaling MongoDB.
With its coverage of concepts and practical examples, Ruby and MongoDB Web Development Beginner’s Guide is the right choice for Ruby developers to get started with developing websites with MongoDB as the database.
What you will learn from this book
- Get MongoDB and Ruby up and running on your machine (Windows/Mac/Linux)
- Leverage MongoDB to build highly scalable data-centric applications
- Leverage MongoDB replication to ensure high availability and reliability
- Create your first object and save it to MongoDB
- Create a Ruby Object and map it to MongoDB document
- Process large datasets with MapReduce
- Create geo-spatial indexes or 2D indexes
- Learn about Mongoid and MongoMapper for mapping Ruby objects to MongoDB documents
Approach
This book is packed with step-by-step instructions and practical examples, along with accompanying screenshots and code for an easy learning curve. The needs of a beginner are totally satisfied by the book.
Who this book is written for
This book assumes that you are experienced in Ruby development skills – Ruby, HTML, CSS. Having knowledge of using NoSQL will help you get through the concepts quicker, but it is not mandatory. No prior knowledge of MongoDB required.
Table of Contents
Chapter 1: Installing MongoDB and Ruby
Chapter 2: Diving Deep into MongoDB
Chapter 3: MongoDB Internals
Chapter 4: Working Out Your Way with Queries
Chapter 5: Ruby DataMappers: Ruby and MongoDB Go Hand in Hand
Chapter 6: Modeling Ruby with Mongoid
Chapter 7: Achieving High Performance on Your Ruby Application with MongoDB
Chapter 8: Rack, Sinatra, Rails, and MongoDB – Making Use of them All
Chapter 9: Going Everywhere – Geospatial Indexing with MongoDB
Chapter 10: Scaling MongoDB
Pop Quiz Answers