Cargando…

Ruby and MongoDB web development beginner's guide : create dynamic web applications by combining the power of Ruby and MongoDB /

Create dynamic web applications by combining the power of Ruby and MongoDB with this book and ebook.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Rege, Gautam
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Pub., 2012.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Installing MongoDB and Ruby; Installing Ruby; Using RVM on Linux or Mac OS; The RVM games; The Windows saga; Using rbenv for installing Ruby; Installing MongoDB; Configuring the MongoDB server; Starting MongoDB; Stopping MongoDB; The MongoDB CLI; Understanding JavaScript Object Notation (JSON); Connecting to MongoDB using Mongo; Saving information; Retrieving information; Deleting information; Exporting information using mongoexport
  • Importing data using mongoimportManaging backup and restore using mongodump and mongorestore; Saving large files using mongofiles; bsondump; Installing Rails/Sinatra; Summary; Chapter 2: Diving Deep into MongoDB; Creating documents; Time for action
  • creating our first document; NoSQL scores over SQL databases; Using MongoDB embedded documents; Time for action
  • embedding reviews and votes; Fetching embedded objects; Using MongoDB document relationships; Time for action
  • creating document relations; Comparing MongoDB versus SQL syntax; Using Map/Reduce instead of join
  • Understanding functional programmingBuilding the map function; Time for action
  • writing the map function for calculating vote statistics; Building the reduce function; Time for action
  • writing the reduce function to process emitted information; Understanding the Ruby perspective; Setting up Rails and MongoDB; Time for action
  • creating the project; Understanding the Rails basics; Using Bundler; Why do we need the Bundler; Setting up Sodibee; Time for action
  • start your engines; Setting up Mongoid; Time for action
  • configuring Mongoid; Building the models
  • Time for action
  • planning the object schemaTesting from the Rails console; Time for action
  • putting it all together; Understanding many-to-many relationships in MongoDB; Using embedded documents; Time for action
  • adding reviews to books; Choosing whether to embed or not to embed; Time for action
  • embedding Lease and Purchase models; Working with Map/Reduce; Time for action
  • writing the map function to calculate ratings; Time for action
  • writing the reduce function to process the emitted results; Using Map/Reduce together; Time for action
  • working with Map/Reduce using Ruby; Summary
  • Chapter 3: MongoDB InternalsUnderstanding Binary JSON; Fetching and traversing data; Manipulating data; What is ObjectId?; Documents and collections; Capped collections; Dates in MongoDB; JavaScript and MongoDB; Time for action
  • writing our own custom functions in MongoDB; Ensuring write consistency or ""read your writes""; How does MongoDB use its memory-mapped storage engine?; Advantages of write-ahead journaling; Global write lock; Transactional support in MongoDB; Understanding embedded documents and atomic updates; Implementing optimistic locking in MongoDB
  • Time for action
  • implementing optimistic locking