Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails & Backbone in perfect harmony

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.md

This is the classic Backbone Todos app, refactored to leverage CoffeeScript and Rails' Asset Pipeline, and backended by a Rails JSON API.

Install

If you don't already know this dance:

git clone git://github.com/dthtvwls/rails-backbone-todos.git

cd rails-backbone-todos/

bundle install

rake db:schema:load

rails server

open http://localhost:3000

For a really fun time

Check http://localhost:3000/todos.json while you use the Backbone app to see the data updating. All communication between Backbone and Rails is over the API; front and back ends are completely decoupled.

Something went wrong with that request. Please try again.