Thursday, August 27, 2009

Create & serve a Sinatra app on your iPhone

Taking tips from this article on "Building a iPhone web app in under 50 lines with Sinatra and iUI", I've toyed around with building and serving one right from my iPhone.

ssh root@IPHONE_IP_ADDRESS

gem install sinatra -v 0.9.1.1 --no-ri --no-rdoc
# Latest gem needs fcgi gem which cannot be compiled properly

BUILD YOUR sinatra_app.rb

ruby -rubygems sinatra_app.rb


Question: So far I've got the V & C in MVC. What's the best way to build the M using Sinatra on iPhone? ActiveRecord?

No comments:

Blog Archive