Skip to content

jimjh/reaction-todos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo

A todo list built on the Reaction framework. This is intended to be a minimal example. The annotated source is available here.

Install and Run

  1. Clone.
$> git clone https://github.com/jimjh/reaction-todos
  1. Install.
$> bundle install
  1. Migrate.
$> rake db:setup
  1. Run.
$> bundle exec rails server

Open up two different browsers (I tried this in Chrome and Safari) and point them to http://localhost:3000. Changes made in one browser are immediately updated in the other.

Reaction

Except for the following places, Todos is just a regular Rails app.

Finally, app/assets/javascripts/init.js contains a regular Backbone app, adapted from the Backbone tutorial. The templates are in app/views/home/index.html.erb.

Credits

Special thanks to Sindre Sorhus and TodoMVC for the great-looking todo list.