Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drnic/todos-bulk-api-demo
bulk_api working for simple Todo app
https://github.com/drnic/todos-bulk-api-demo
Last synced: 2 months ago
JSON representation
bulk_api working for simple Todo app
- Host: GitHub
- URL: https://github.com/drnic/todos-bulk-api-demo
- Owner: drnic
- Created: 2011-06-07T01:32:05.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-06-11T01:25:53.000Z (over 13 years ago)
- Last Synced: 2023-04-10T17:09:57.776Z (over 1 year ago)
- Language: Ruby
- Homepage: https://github.com/drogus/bulk_api
- Size: 113 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo of SproutCore and bulk_api for Rails
[bulk_api](https://github.com/drogus/bulk_api/) is a Rails engine to bulk access a user's resources via an API.
It provides SproutCore integration via a custom DataSource. As a result, a [SproutCore](http://sproutcore.com/) application can quickly get all the relevant backend data into the client-side SproutCore front end.
This is a demo application (the todo example from the [SproutCore Guides](guides.sproutcore.com/getting_started.html)) integrated with a Rails app. The Rails app has a single `Todo` model. The integration between SproutCore and Rails is via the `/api/bulk` route used by bulk_api.
There is a [guide to building this application](http://sproutguides-drogus.strobeapp.com/rails.html "SproutCore Guides: Connect SproutCore with Ruby on Rails applications").
## Usage
git clone [email protected]:drnic/todos-bulk-api-demo.git
cd todos-bulk-api-demo
git submodule update --init
bundle
rake db:migrate
rails sOpen [http://localhost:3000/_sproutcore/todos](http://localhost:3000/_sproutcore/todos "Todos") in a browser. Add todo items, finish them, close the browser and revisit it.
SHAZAM! The data is still there.
## What's missing?
There is no User model and no authentication. bulk_api supports this, but the current example does not.
## Behind the scenes
Want to see the example data in your database from SproutCore's perspective?
curl http://localhost:3000/api/bulk?todos=all
## License
Seriously? It's example code.
Seriously. Ok, MIT license.