Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dima/soup
Mixing CouchDB, Sinatra, AIR and RestfulX to create an offline/online ready app with undo/redo capabilities.
https://github.com/dima/soup
Last synced: about 2 months ago
JSON representation
Mixing CouchDB, Sinatra, AIR and RestfulX to create an offline/online ready app with undo/redo capabilities.
- Host: GitHub
- URL: https://github.com/dima/soup
- Owner: dima
- Created: 2009-01-24T09:05:12.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-03-19T08:15:48.000Z (almost 16 years ago)
- Last Synced: 2024-08-04T05:02:42.625Z (5 months ago)
- Language: ActionScript
- Homepage:
- Size: 7.89 MB
- Stars: 23
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
- awesome-actionscript-sorted - soup - Mixing CouchDB, Sinatra, AIR and RestfulX to create an offline/online ready app with undo/redo capabilities. (Networking / Database)
README
= Soup: Mixing CouchDB, Sinatra, AIR and RestfulX to create an offline/online ready AIR app with undo/redo capabilities.
== Description
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.
== Running
To try this app out do the following:
ruby soup.rb
This will start up your Sinatra server on http://localhost:4567Next, go to http://localhost:5984/_utils (this is your CouchDB admin URL) and create a database called "sinatra".
Then start your Soup AIR client:
rake air: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.