Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 2 KB

cuba-demo: a Cuba demo app


The aim of this dummy demo app is to show some simple design patterns and implementation techniques that real world Cuba apps may follow.


  1. RVM, the Ruby Version Manager.
  2. Ruby (rvm install ruby-1.9.3-p125)
  3. Bundler (the latest versions of RVM will install it for you automatically)

How to run the test suite

  1. Clone the repository (git clone git://
  2. cd to the project directory.
  3. Run the bundle install command to have all the required libraries** installed
  4. Run the rake command (rake:test it's the default task see the Rakefile for details)

** If you don't have them installed already you will need to install SQLite 3 development files on your system. If you are using Debian or a derived OS such as Ubuntu you can simply install the libsqlite3-dev package.

How to run the app

  1. Once you have installed all the dependencies, simply run the rackup command to fire up Rack's default WEB server.
  2. Point your browser to this URL

Bonus points

Besides learning about Cuba, you will also be learning how to integrate the following libraries into the mix:

  • Sequel, the database toolkit for Ruby.
  • Mini::Test, minimal (mostly drop-in) replacement for test-unit.
  • Capybara, an acceptance test framework for web applications.


cuba-demo is released under the MIT license