You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 30, 2024. It is now read-only.
This little AIR app is just a step above a basic rx-gen generated AIR application. It adds the ability to:
Go from online mode to offline mode and back. When you are in offline mode the application saves all the records to local AIR SQLite database.
Synchronize records when you are back online. When you go back online the application switches to AS3JSONHTTPServiceProvider and you can optionally synchronize all the data you modified/created/deleted while offline using Rx.changes.push().
Undo/redo. You can perform undo/redo on all creates/updates and deletes in both online and offline mode.
This will start up your Sinatra server on localhost:4567
Next, go to localhost:5984/_utils (this is your CouchDB admin URL) and create a database called “sinatra”.
Then start your Soup AIR client:
rakeair:run
Create some records, etc to try it out. To go into off-line mode simply stop the sinatra server. You can keep creating records after you go off-line. To go back online, start the server again. To synchronize push “Synchronize” button and check out your CouchDB server to make sure all the new stuff made it there.
About
Mixing CouchDB, Sinatra, AIR and RestfulX to create an offline/online ready app with undo/redo capabilities.