How to Build and Run the Pomodo Example in Enterprise Flexible Rails
The first two chapters of the book Enterprise Flexible Rails are done.
The code for the completed book chapters is at http://github.com/peterarmstrong/enterprise_flexible_rails/tree/master and at http://github.com/dima/enterprise_flexible_rails/tree/master.
Now, since Dima and I are writing this book in the style that I wrote Flexible Rails, we have a “goal app” we are building, and the book is the process of retracing our steps. The goal app is once again called “Pomodo”, but it’s much better than the “Pomodo” of Flexible Rails — this one will almost be at the level of a commercial product. (In fact, we will be building a commercial product on top of the book code.)
The reason I am talking about the Pomodo app is that (as you will see if you read the book) the code for the Pomodo app is currently about 3-5 chapters ahead of the book text. However, the Pomodo code is very
instructive to look at, in order to learn the Ruboss Framework before the book chapters are caught up.
To get the latest version of the Pomodo app code, go to http://github.com/dima/pomodo_on_rails. (Dima’s version will usually be ahead of mine.)
Since the Pomodo app is a few weeks away from being discussed in Enterprise Flexible Rails, here’s the short version of how to get it and follow along. If this doesn’t make any sense, please post a question to the http://groups.google.com/group/ruboss-framework group:
$> git clone git://github.com/dima/pomodo_on_rails.git
$> cd pomodo_on_rails
$> git submodule init
$> git submodule update
If you haven’t already added gems.github.com to sources to:
$> gem sources -a http://gems.github.com
If you don’t have rubyist-aasm gem installed then do:
$> sudo gem install rubyist-aasm
If you don’t have ruboss4ruby gem installed then do:
$> sudo gem install ruboss4ruby
Then:
$>rake db:refresh
$> ./script/server
At this point, your Rails app is running.
Next, you need to get the Ruboss Framework:
$> git clone git://github.com/dima/ruboss_framework.git
At this point, you import the pomodo_on_rails and the ruboss_framework projects into Flex Builder 3.
You then need to edit the properties of the pomodo_on_rails project (right-click on it, choose Properties, select Flex Build Path, Library Path and then first remove and then re-add the ruboss project. (Flex Builder gets confused otherwise.) There’s an easier way involving using a compiled SWC, but I like this way since it lets you build from source.
Now that the project is all set up, do a clean build and run the Pomodo.mxml application in the pomodo_on_rails project. You can either login as “dima” with password “monkey”, or you can
sign up. If you are signing up make sure that you check log/development.log for activation URL. Copy-paste that activation URL into your browser, then log in. The application is not fully configured to mail stuff out (on purpose).
That’s it!
You will see the following login screen:
http://ruboss.com/wp-content/uploads/2008/10/efrpomodologin.png
If you login, you will see the following app:
http://ruboss.com/wp-content/uploads/2008/10/efrpomodoapp.png
The more complete explanation will be found in Enterprise Flexible Rails.



