Skip to content
A minimal demo for the reaction gem.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
db
lib
log
public
script
test
vendor
.gitignore
.groc.json
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

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.

You can’t perform that action at this time.