The “Tea Testing Team” example (3 / 7)

This example shows how to implement a business process on top of OpenWFEru and ruote-web (ex “Densha”). OpenWFEru depends on Ruby, while ruote-web depends on Ruby on Rails.

getting Ruby and Ruby on Rails

There are extensive instructions on how to get Ruby and Ruby on Rails on the website of the later : Get Ruby on Rails in no time

The latest Rails 2.0.x should be OK for running “ruote-web”.

getting “ruote-web”

There is a packaged version of “ruote-web” (ex “densha”) : ruote-web-0.9.19pre0.zip

When unzipped, rename the top directory ‘ruote-web’ to ‘ttt’ :

mv ruote-web ttt

(these instructions are already detailed at the ruote-web quickstart, they are reproduced here but the application is renamed ‘ttt’).

preparing the database

This is a development application (for now), it will use a database named “ttt_development”. Let’s change ttt/config/database.yml to reflect that :

development:
  adapter: mysql
  database: ttt_development
  username: ttt
  password: ttt
  host: localhost
  encoding: utf8

(MySQL is used in this example, please refer to the Ruby on Rails documentation for more information on how to use another database)

Then create a “ttt” user in MySQL (via the ‘root’ user) :

mysql -u root -p -e \
"grant select,insert,update,delete,create,drop,index on ttt_development.* to 'ttt'@'localhost' identified by 'ttt'" 

The database ‘ttt_development’ has to be created next :

mysql -u root -p -e "create database ttt_development CHARACTER SET utf8 COLLATE utf8_general_ci" 
cd ttt/
rake db:migrate

first run

Then test if the application is usable by launching it :

cd ttt/
ruby script/server

If everything went fine, you can now head to http://localhost:3000 and you should be greeted by the login screen.

You can login as “admin” (password “admin”) and look around a bit, to make sure the install was successful.

 
 
>