CloudKit Availability and Progress Update
I promised last week to touch base again today and I’m happy to report that the CloudKit gem is available for the brave amongst you to browse and use. I say this because there are several working pieces that are of value right now while the completed gem will take a few more days before being worthy of an “official” release and a push to RubyForge.
http://github.com/jcrosby/cloudkit/tree/master
Here’s what the code straight out of GitHub can do right now after a “rake local_deploy”:
- Generate a small, fast RESTful web app that supports OpenID and OAuth out of the box using Blake Mizerany’s killer Sinatra DSL (more on this later).
- Generate a GWT UI and REST client skeleton for those of you who dig that sort of thing. (A similar jQuery skeleton generator is in the works.)
- Generate RESTful resources with migrations plus ActiveRecord models that have their RESTful routing and authentication baked in.
Things that are extremely close and may be available by the time you read this:
- A rake task for running the app using Adobe AIR.
- JavaScript/ActiveRecord model synchronization stolen from my GWT on Rails project.
Other items in the works that won’t likely be ready when you read this but will appear rapidly, piece by piece, prior to the gem release:
- Desktop application updates.
- Automatic desktop schema migrations that match the server side counterparts.
- Automatic data/resource synchronization between desktop clients and server side storage.
- Transparent offline/online detection and management using the Application Context (a.k.a. MCP) mentioned in the previous post.
I’ll continue these frequent updates as the pieces roll out.



Peter wrote:
a minimal tutorial/doc how to set up the whole thing would be nice. What to do after “rake local_deploy” ?
Posted on 15-Apr-08 at 12:24 pm | Permalink
Jon wrote:
@Peter:
For a quick start, type “cloudkit myappname”. Then, cd into that directory and type “rake start”. At that point, you can hit localhost:3000 in your browser and look around. If you want to play with the OAuth pieces and are running Leopard, there is an OAuth client in my GitHub profile called “Endpointr.”
Quality docs are in the works including a step-by-step walk through of building an app.
Posted on 15-Apr-08 at 1:39 pm | Permalink
Phil wrote:
great, thank you very much for the short intro. At least somebody should honor your work ;-)
I’m not yet familiar with the ruby stuff but this is a good reason to start.
Posted on 16-Apr-08 at 5:06 am | Permalink
john wrote:
why have you chosen adobe air?
does this constrain (technical or legal) this project?
Posted on 04-Jul-08 at 11:44 pm | Permalink
Jon wrote:
@john:
I chose Adobe AIR because there was no alternative. There are no other cross-platform (Mac, Linux, and Windows) SSB wrappers that support HTML5-style database storage.
Posted on 05-Jul-08 at 11:14 pm | Permalink