Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3 / PhoneGap: Converting a Rails app into an Phonegap iOS app?

I have a site built on top of Rails. In essence, I want to release a lightweight version of it for the appstore, and I think Phonegap is a good solution w/o writing a full iOS application.

What would be the easiest way to get something like this out of the door? I'm new to PhoneGap and would love if an experience dev could shed some light on how with is done. I feel it would also be a valuable resource for many other Rails devs.

My rails 3 app uses devise for authenication, carrierwave for file processing, amazon S3 for storage, and Heroku for hosting. Can someone give me some basic insight into how all these components are wrapped up and ablwe to be used with PhoneGap?

like image 595
trying_hal9000 Avatar asked Nov 21 '11 21:11

trying_hal9000


1 Answers

I'm new to Phonegap too, but I'm exploring the same idea than you and I've found this useful screencast: "PhoneGap + Rails 3 API" http://vimeo.com/18763953

The idea is that you make an HTML5 client side app that makes calls to a Rails API on the server side.

Here is the code of the screencast demo:

  • https://github.com/quickleft/kbomb_phonegap_server (Rails API)
  • https://github.com/quickleft/kbomb_phonegap_client (HTML5 client with Phonegap).

Hope it helps!

like image 71
jävi Avatar answered Sep 24 '22 02:09

jävi