- An introduction to CouchDB
- Installing CouchDB
- Experimenting with CouchDB’s web interface
- Integrating with Rails using ActiveCouch
- Integrating with Rails using RelaxDB
- Getting to scaffolding using RelaxDB
- Installing CouchDB from Subversion source code
- Trying out couchrest and topfunky’s basic_model
This afternoon i decided that what the Internet really needs right now is some information about how to connect Ruby on Rails to a CouchDB database. So i’m going to have a go! I don’t quite know what to do (which will probably become very clear!) so this will be a play-along-at-home experience. I’ll blog about it in a series of posts, stopping whenever i get stuck. Hopefully i’ll receive some feedback on whether what i’m doing is a good idea, and get some tips for what to try next.
This first post is just going to be an introduction, stating my interest in wanting to get this to work.
Some brief definitions
For those who don’t know, here are some basic starting points …
Ruby is an open-source, interpreted, object-oriented programming language created by Yukihiro Matsumoto (‘Matz’).
Rails is a web application framework, created by David Heinemeier Hansson, written in Ruby, which guides us down an ‘opinionated’ route of best practices such as Model-View-Controller architecture, RESTful techniques, test/behaviour-driven-development. Thanks to its use of conventions rather than configuration, it is easy to get going quickly with Rails. However, it can be quite difficult to break out of the conventions, as we are going to try to do by using CouchDB as the database platform.
CouchDB, from what i can gather, is a document-oriented, RESTful, distributed database system written in Erlang.
Erlang is a programming language from Ericsson, which enables features such as concurrency, soft-real-time access, and fault-tolerance.
More technical details of CouchDB follow …
Continue reading →