Rhodes Overview


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Rhodes Overview

    1. 1. Adam Blum [email_address]
    2. 2. The Rhomobile Mission 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>with device optimization and offline capability of “native mobile apps” </li></ul><ul><li>open source for rapid adoption by developers </li></ul>
    3. 3. Platform Overview <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>
    4. 4. The Rhodes Microframework <ul><li>a minimalist Ruby implementation for mobile devices </li></ul><ul><li>a Model-View-Controller &quot;microframework&quot; that consists of a directory structure and file naming convention. Writing to this framework primarily consists of editing a set of ERB templates for creating HTML to display data </li></ul><ul><li>the RhoSync synchronization engine client </li></ul><ul><li>a simple object relational manager (ORM) called Rhom </li></ul><ul><li>a web server which is installed on the mobile device and runs locally </li></ul><ul><li>The RhoGen app generator </li></ul>
    5. 5. Sample Rhodes Apps <ul><li>Rhomobile provides small set of enterprise apps </li></ul><ul><ul><li>CRM - subset of SugarCRM’s capabilities: syncing to opportunities, contacts to device </li></ul></ul><ul><ul><li>Field service – Siebel field service </li></ul></ul><ul><li>third party apps </li></ul><ul><ul><li>TrailGuide (Basecamp) will release in a couple months </li></ul></ul><ul><ul><li>small number of vendors will accept GPL license </li></ul></ul><ul><ul><li>their source will be published on rhohub.com </li></ul></ul><ul><ul><li>highlight best of breed examples in several verticals: field service/MRO, medical, scientific </li></ul></ul>
    6. 6. Building a Rhodes App <ul><li>Get your data (RhoSync) </li></ul><ul><ul><li>Generate 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 web page </li></ul></ul><ul><li>Generator your app (RhoGen) </li></ul><ul><ul><li>Generate an app (in the Rhodes apps subdirectory for now) </li></ul></ul><ul><ul><li>Generate a model and scaffold code </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 post to App Store) </li></ul></ul>
    7. 7. RhoSync Architecture RhoSync Server Rhodes runtime your app other app backends SugarCRM Siebel SalesForce BaseCamp SOAP SOAP SOAP REST REST
    8. 8. Defining a Rhosync Source <ul><li>Provide a Source Adapter class with </li></ul><ul><li>login- authentication code for the backend </li></ul><ul><li>query - retrieve or read's objects from the backend source </li></ul><ul><li>sync - take apart these objects and put them into a &quot;property bag” </li></ul><ul><li>create </li></ul><ul><li>update </li></ul><ul><li>delete </li></ul><ul><li>logoff – not always necessary </li></ul>
    9. 9. 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>
    10. 10. Sample Rhosync Source Query select_fields = ['name','case_number','priority','status','type','description','resolution'] result = client.get_entry_list(session_id,'Cases','','case_number',0,select_fields,'10000',0);
    11. 11. Rhodes Architecture RhoSync Server other app backends SugarCRM Siebel SalesForce BaseCamp database (SQLite, PerstLite) Rhodes app RhoSync client web server ORM(Rhom) Rhodes runtime browser control Ruby interpreter HTML (ERB) templates model controller model HTML (ERB) templates controller
    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><li>application.rb </li></ul><ul><li>index.html </li></ul><ul><li>Generate your model </li></ul><ul><li>cd accountapp </li></ul><ul><li>rhogen model account http://rhosync.rhohub.com/sources/1 1 name,industry </li></ul><ul><li>Creates… </li></ul><ul><li>controller.rb </li></ul><ul><li>config.rb </li></ul><ul><li>index.erb </li></ul><ul><li>new.erb </li></ul><ul><li>edit.erb </li></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;<%=@account.name%>&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. Build/Test On Your Favorite Device
    15. 15. Platform Status <ul><li>0.1 operational on iPhone, Windows Mobile and RIM Blackberry today </li></ul><ul><li>Sample apps for SugarCRM and Siebel Field Service </li></ul><ul><li>All open source </li></ul><ul><ul><li>github.com/rhomobile </li></ul></ul><ul><ul><li>rhomobile.lighthouseapp.com </li></ul></ul><ul><li>0.2 at end of December </li></ul><ul><ul><li>Better build process </li></ul></ul><ul><ul><li>Faster sync </li></ul></ul><ul><ul><li>Faster startup </li></ul></ul><ul><ul><li>Symbian </li></ul></ul><ul><ul><li>Settable source (already checked in) </li></ul></ul><ul><ul><li>PIM access </li></ul></ul>
    16. 16. 0.3 Release <ul><li>February 2009 </li></ul><ul><ul><li>Hosted services (i.e. app hosting site: http://rhohub.com) </li></ul></ul><ul><ul><li>RhoVer - vending machine </li></ul></ul><ul><ul><li>Device capabilities service </li></ul></ul><ul><ul><li>Android support </li></ul></ul>
    17. 17. Hosted Services <ul><li>Registration </li></ul><ul><ul><li>Developers </li></ul></ul><ul><ul><li>Apps </li></ul></ul><ul><li>Sync </li></ul><ul><ul><li>Create </li></ul></ul><ul><ul><li>Test </li></ul></ul><ul><li>App Creation </li></ul><ul><ul><li>Generate </li></ul></ul><ul><ul><li>Edit </li></ul></ul><ul><ul><li>Download/upload </li></ul></ul><ul><li>Build and provision </li></ul><ul><ul><li>Builds </li></ul></ul><ul><ul><li>Vending </li></ul></ul>
    18. 18. RhoVer DeviceCap 3) User hits vending machine for app with mobile browser Download app for your Kogan Agora 4) Uses DeviceCap (useragent strings/devices) to send back download link 1) user signs up via desktop browser 5) User downloads runner/ app for device enterprise app backend 2) SMS sent to user with download URL RhoSync 6) App is running on device rhohub.com/vending/yourapp ! Rhodes Your app
    19. 19. 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>