Building Mobile Apps with Rhodes

  • 5,598 views
Uploaded 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 …

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.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
5,598
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
180
Comments
0
Likes
9

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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