Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Building Mobile Apps with Rhodes


Published on

The Rhodes framework is a platform for building locally executing, device-optimized mobile applications for all major smartphone devices. These applications worked with synchronized local data from transactional enterprise application backends. Rhodes also allows you to take advantage of native device capabilities such as GPS, PIM contact and camera. Yet you write the majority of your interface with high productivity in HTML. Rhodes is available for iPhone, Windows Mobile and Research in Motion (BlackBerry) and Symbian smartphones. In this webinar we will show how to build a mobile app to interact with SugarCRM in 15 minutes.

Published in: Technology
  • Be the first to comment

Building Mobile Apps with Rhodes

  1. 1. Adam Blum - CEO, Rhomobile
  2. 2. Rhomobile’s Mission “ To mobilize enterprise apps… cost-effectively with a great user experience” <ul><li>Provide the high level productivity and portability of web programming </li></ul><ul><li>Device optimization and offline capability of “native mobile apps” </li></ul><ul><li>Open source for rapid adoption by developers </li></ul>
  3. 3. Background <ul><li>Smartphones sales are exploding </li></ul><ul><li>Five major smartphone operating systems: iPhone, BlackBerry, Windows Mobile, Symbian, Android </li></ul><ul><ul><li>Growth leaders are installed base laggards </li></ul></ul><ul><li>“ native apps” have won the day </li></ul><ul><ul><li>500 million iPhone app downloads on a platform with great browser installed </li></ul></ul><ul><li>But …how do you write an app for all popular devices? </li></ul>
  4. 4. A Better Way… Rhomobile <ul><li>Build the app quickly in HTML and Ruby </li></ul><ul><li>Write it once and it runs on all smartphones </li></ul><ul><li>Work with synced local data </li></ul><ul><li>Exploit device capabilities (GPS, PIM data) </li></ul><ul><li>Available open source: </li></ul>
  5. 5. The Rhomobile Components <ul><li>Rhodes </li></ul><ul><ul><li>“ microframework” for building locally executing natively optimized mobile apps </li></ul></ul><ul><ul><li>Developers run app generator for their objects of interest and then edit HTML templates </li></ul></ul><ul><ul><li>Contains first mobile Ruby implementation </li></ul></ul><ul><li>RhoSync </li></ul><ul><ul><li>Sync focused on web service data (needed in the age of SaaS) </li></ul></ul><ul><ul><li>Handles keeping your data local on the device </li></ul></ul>
  6. 6. Rhodes Architecture RhoSync Server synced data (SQLite) Rhodes app RhoSync client web server ORM (Rhom) Rhodes runtime browser control Ruby interpreter HTML (ERB) templates model controller model HTML (ERB) templates controller Backend app mobile device source adapter Backend app model model We provide: Third party components: source adapter You write:
  7. 7. Rhodes Apps <ul><li>Rhomobile provides sample apps </li></ul><ul><ul><li>SugarCRM </li></ul></ul><ul><ul><li>Siebel Field Service </li></ul></ul><ul><ul><li>Lighthouse </li></ul></ul><ul><li>Third party apps </li></ul><ul><ul><li>TrailGuide (Basecamp) - Carry the Day </li></ul></ul><ul><ul><li>Mobile Lighthouse – VDG Group </li></ul></ul>
  8. 8. Building a Rhodes App <ul><li>Get your data (RhoSync) </li></ul><ul><ul><li>Create a sync source </li></ul></ul><ul><ul><li>Define your sync source adapter code </li></ul></ul><ul><ul><li>Test it from the RhoSync web interface </li></ul></ul><ul><li>Generate your app (RhoGen) </li></ul><ul><ul><li>Generate an app (in the Rhodes apps subdirectory) </li></ul></ul><ul><ul><li>Generate scaffold code for the model </li></ul></ul><ul><li>Develop your app (Ruby/HTML editor of choice) </li></ul><ul><ul><li>Edit your model controllers </li></ul></ul><ul><ul><li>Edit your HTML templates (ERB file) </li></ul></ul><ul><li>Build, test, deploy (development environment for device) </li></ul><ul><ul><li>Build your app </li></ul></ul><ul><ul><li>Test your app </li></ul></ul><ul><ul><li>Make available for download (or submit to an AppStore) </li></ul></ul>
  9. 9. RhoSync Architecture RhoSync Server Rhodes runtime your app Other app backends SugarCRM Siebel SalesForce BaseCamp SOAP SOAP SOAP REST REST
  10. 10. Defining a Rhosync Source <ul><li>Provides a Source Adapter class with </li></ul><ul><ul><li>login- authentication code for the backend </li></ul></ul><ul><ul><li>query - retrieve or read objects from the backend source </li></ul></ul><ul><ul><li>sync - take apart these objects and put them into a &quot;property bag” </li></ul></ul><ul><ul><li>create </li></ul></ul><ul><ul><li>update </li></ul></ul><ul><ul><li>delete </li></ul></ul><ul><ul><li>logoff </li></ul></ul>
  11. 11. Generated Source Adapter Class <ul><li>class <%=name%> < SourceAdapter </li></ul><ul><ul><li>def initialize(source) </li></ul></ul><ul><ul><li>super </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def login </li></ul></ul><ul><ul><li>#TODO: Write some code here </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def query </li></ul></ul><ul><ul><li># TODO: write some code here </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def sync </li></ul></ul><ul><ul><li># usually the generic base class sync does the job </li></ul></ul><ul><ul><li>super </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def create(name_value_list) </li></ul></ul><ul><ul><li>#TODO: write some code here </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def update(name_value_list) </li></ul></ul><ul><ul><li>#TODO: write some code here </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def delete(name_value_list) </li></ul></ul><ul><ul><li>#TODO: write some code here if applicable </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><ul><li>def logoff </li></ul></ul><ul><ul><li>#TODO: write some code here if applicable </li></ul></ul><ul><ul><li>end </li></ul></ul><ul><li>end </li></ul>
  12. 12. Generate Your Rhodes App <ul><li>Generate your app </li></ul><ul><li>rhogen app accountapp </li></ul><ul><li>Creates… </li></ul><ul><ul><li>application.rb </li></ul></ul><ul><ul><li>index.html </li></ul></ul><ul><li>Generate your model </li></ul><ul><li>cd accountapp </li></ul><ul><li>rhogen model account,industry </li></ul><ul><li>Creates… </li></ul><ul><ul><li>controller.rb </li></ul></ul><ul><ul><li>config.rb </li></ul></ul><ul><ul><li>index.erb </li></ul></ul><ul><ul><li>new.erb </li></ul></ul><ul><ul><li>edit.erb </li></ul></ul>
  13. 13. Edit A View <form title=&quot;Edit Account&quot; class=&quot;panel&quot; id=&quot;account_edit_form&quot; method=&quot;POST&quot; action=&quot;<%=url_for('update')%>&quot;> <fieldset> <input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;<%=@account.object%>&quot;/> <div class=&quot;row&quot;> <label>Name: </label> <input type=&quot;text&quot; name=&quot;account[name]&quot; value=&quot;<>&quot;/> </div> <div class=&quot;row&quot;> <label>Industry: </label> <select name=&quot;account[industry]&quot;> <%@industries.each do |i|%> <option value=<%=i%> <%if @account.industry==i%> selected<%end%>><%=i%> </option> <%end%> </select> </div> </fieldset> <input type=&quot;submit&quot; value=&quot;Update&quot;/> </form>
  14. 14. Platform Status <ul><li>0.2 released January 7 th </li></ul><ul><ul><li>Added Symbian support, PIM contact access </li></ul></ul><ul><li>0.3: end of January </li></ul><ul><ul><li>Rake-based builds </li></ul></ul><ul><ul><li>Callbacks in RhoSync </li></ul></ul><ul><ul><li>Layouts </li></ul></ul><ul><li>1.0 release: February 28th </li></ul><ul><ul><li>Android </li></ul></ul><ul><ul><li>Device capabilities: </li></ul></ul><ul><ul><ul><li>Camera </li></ul></ul></ul><ul><ul><ul><li>SMS </li></ul></ul></ul><ul><ul><li>Hosted services </li></ul></ul>
  15. 15. App Development Contest <ul><li>$10000 for best app built on Rhodes </li></ul><ul><ul><li>Runner up prizes of free smartphones </li></ul></ul><ul><li>Requirements: </li></ul><ul><ul><li>Open source your app on </li></ul></ul><ul><ul><li>Must use Rhodes </li></ul></ul><ul><li>Criteria: </li></ul><ul><ul><li>Usability of app </li></ul></ul><ul><ul><li>Maintainability of code </li></ul></ul><ul><ul><li>Use of device capabilities </li></ul></ul><ul><li>Deadline: April 30, 2009 </li></ul><ul><li>Awards: May 15, 2009 </li></ul><ul><li>Details at: </li></ul>
  16. 16. Why Rhomobile? <ul><li>Declarative tag-based approach (web programming) is more productive </li></ul><ul><li>Rich client against local data much better than remote web apps </li></ul><ul><li>Write it once and it works on all smartphones </li></ul><ul><li>Open source from the ground up </li></ul><ul><li> </li></ul>
  17. 17. Questions? Adam Blum CEO, Rhomobile [email_address]