This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 2c00eb2a78c2d41d3d3f907c126e0affe0eec98e
tree af81a46eab88993533888477c2bcfe557ad00ec2
parent ac9a85d1d89929870f72d04090e12edc2cee9918
tree af81a46eab88993533888477c2bcfe557ad00ec2
parent ac9a85d1d89929870f72d04090e12edc2cee9918
soup /
| name | age | message | |
|---|---|---|---|
| |
.actionScriptProperties | Thu Mar 19 01:14:36 -0700 2009 | |
| |
.flexProperties | Sat Jan 24 00:10:22 -0800 2009 | |
| |
.project | Sat Jan 24 00:10:22 -0800 2009 | |
| |
README.rdoc | Sat Jan 24 23:56:04 -0800 2009 | |
| |
Rakefile | Sat Jan 24 00:10:22 -0800 2009 | |
| |
app/ | Sat Jan 24 23:03:25 -0800 2009 | |
| |
bin-debug/ | Thu Mar 19 01:14:36 -0700 2009 | |
| |
config/ | Thu Mar 19 01:14:36 -0700 2009 | |
| |
db/ | Sat Jan 24 00:10:22 -0800 2009 | |
| |
lib/ | Thu Mar 19 01:14:36 -0700 2009 | |
| |
script/ | Thu Mar 19 01:14:36 -0700 2009 | |
| |
soup.rb | Tue May 26 23:22:13 -0700 2009 | |
| |
soup.tmproj | Thu Mar 19 01:14:36 -0700 2009 |
README.rdoc
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 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:
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.







