Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library Ruby 1.1
Community Wiki and Resources
Download Client Library
RDoc
Ruby Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
2 Couchbase and Rails Tutorial
Chapter Sections
Chapters

2.2. Example Rails Application (Squish)

For the purposes of this tutorial, we have specially prepared an example application for you to follow along with. You can download Squish from Github. Squish is a simple URL shortener implemented with Couchbase.

To get started, lets first get the source code. Open up a new Terminal window and type the following:

shell> git clone git://github.com/couchbaselabs/couchbase-squish.git
shell> cd couchbase-squish
shell> bundle install

Now that you have the source and all of the dependencies, we can start the application and see what's happening.

shell> rails server

Figure 2.1. Ruby Squish Homepage

Ruby Squish Homepage

In a URL shortening application there are a number of features we would like to accomplish. Let's define what they are: