Miles to go …

July 28, 2009

Track your running miles using JRuby, Ruby-on-Rails, GlassFish, NetBeans, MySQL, and YUI Charts

Filed under: Running — arungupta @ 11:00 pm

This blog introduces a new application that will provide basic tracking of your running distance and generate charts to monitor progress. There are numerous similar applications that are already available/hosted and this is a very basic application. What’s different about this ?

The first version of this application is built using JRuby, Ruby-on-Rails, GlassFish Gem, MySQL, and NetBeans IDE. This combination of technologies is a high quality Rails stack that is used in production deploymnet at various places. Still nothing different ?

A similar version of this application will be built using a variety of Web frameworks such as Java EE, Grails, Wicket, Spring and Struts2 (in no particular order). The goal is to provide a similar application, slightly bigger than “Hello World,” built using different frameworks and deploy on GlassFish. Each framework will then be evaluated based upon the criteria ranging from the basic principles of framework, ease-of-use in design/development/testing/debugging/production of this web app, database interaction, tools support, ability to add 3rd party libraries, browser compatibility and other points. 

An important point to note is that this is not an exhaustive evaluation of different Web frameworks and the scope is limited only to this application.

A complete list of frameworks planned is available here. The criteria used to evaluate each framework is described here. Your feedback in terms of Web frameworks and evaluation criteria is highly appreciated.  Please share your feedback on the .

Now the first version of application. The complete instructions to check out and run the Rails version of this application are available here.

Here are some charts generated using the application:


YUI is used for all the charting capabilities.

And here is a short video that explains how the application work:

If you are a runner, check out the application and use it for tracking your miles. A sample runlog is available in “test/fixtures/runlogs.yml” and races in “test/fixtures/races.yml”.

If you know Rails, please provide feedback if the application is DRY and using the right set of helpers.

If you’d like the existing list of web frameworks to be pruned or include another one to the list, .

Share you feedback at .

Technorati: jruby rubyonrails glassfish netbeans mysql yahoo yui chart running miles framework

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot
Related posts:
  1. Track your running miles using Apache Wicket, GlassFish, NetBeans, MySQL, and YUI Charts
  2. Developing GlassFish- and MySQL-Backed Applications with Netbeans and JRuby-on-Rails – Free Webinar on Jan 27
  3. Developing GlassFish- and MySQL-Backed Applications with Netbeans and JRuby-on-Rails – Free Webinar on Mar 26
  4. Webinar Replay Available: GlassFish and MySQL-backed applications with NetBeans and JRuby-on-Rails
  5. TOTD #84: Using Apache + mod_proxy_balancer to load balance Ruby-on-Rails running on GlassFish


  1. I am interested in the data model aspect of this kind of application. A few years ago I experimented with this model.

    I tried 2 years ago to model a multi-year event database for all kinds of running-related events — this got soon out of hand ;) (Think "heats", "cups" and "participation of a user in past years occurrences" on top of the usual authentication model *g*)

    This year I run an online-league at (german)

    Anybody interested in this data modelling aspects feel free to contact me, I have entered my email in this form and ticked "notify me…"


    Comment by cpr — July 29, 2009 @ 12:37 am

  2. [Trackback] Apache Wicket is an application framework to build web applications using HTML for markup and POJOs to capture the business logic and all other processing. Why Wicket digs more into the motivation behind this framework. This Tip Of The Day…

    Comment by Arun Gupta's Blog — July 30, 2009 @ 6:01 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.
Powered by WordPress