An attempt to come up with a sane web API to Core Data synching pattern, using the Pivotal Tracker API.
Objective-C Ruby JavaScript
Latest commit fc0e2a1 Mar 23, 2010 @lukeredpath Started using JSON for remote data as its a lot easier to construct t…
…he packets for sending back to the server.

Project overview

This app uses the uses a basic Rails 3 app with a REST API to explore synching data from a remote API to a local CoreData store.


To get up and running, you'll need the latest Rails 3 beta (to run the demo app). To start up a server for the demo app, inside the SampleRestApp folder, run the following command:

rails server

This will boot up a local server on port 3000, which the iPhone app is configured to use.

You'll also need a copy of my fork of the HTTPRiot library, which should be copied to ~/Library/SDKs.

What is the point?

The point is to have a reusable means of synching a remote API to a local CoreData stack.

I'm using the HTTPRiot to access the API as its an awesome library for interacting with JSON/XML REST APIs. There is a degree of coupling to its HRRestModel class at the moment but that can be refactored away; its not that important right now.