Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Sep 20, 2012
1 parent 46a3b2d commit 354dbb0
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions README.md
Expand Up @@ -3,14 +3,35 @@
This app demonstrates how to bootstrap JSON data from ERB templates into a
Backbone app.

## Set up
This is done by dumping JSON into a `<script>` tag on `posts/index.html.erb`,
then loading the data into a Backbone collection to be rendered by a Backbone
view.

$ bundle
## Reasoning

## Tests
Bootstrapping data to the view and using Backbone to display it is a quick way
of integrating Backbone into an app that currently doesn't use it. Why?
Because it requires no change from the controllers to expose an API. By
reading JSON from the page, it becomes very simple to use pieces of Backbone
(models, collections, views) without AJAX requests or routers; those can come
later.

$ rake
## Set up the app

$ bundle && bundle --binstubs

## Start the app

$ rails s

## Bootstrap Data

$ rake db:bootstrap

## Run Tests

$ rake

## License

See the LICENSE

0 comments on commit 354dbb0

Please sign in to comment.