Code for my tutorial on adding Backbone to an existing Rails application
Ruby CSS CoffeeScript JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.md
README
README.md
Rakefile
app.json
config.ru

README.md

Backbone Rails Demo

Deploy to Heroku

This is the sample application for my blog post entitled "Adding Backbone to an Existing Rails App".

This application was generated with the rails_apps_composer gem provided by the RailsApps Project.

Set Up (Mac OS X)

  1. brew install postgres
  2. Install Postgres.app
  3. run bundle install
  4. Create a config/database.yml file. In it, paste the contents of this file. You can leave the username and password blank.
  5. run rake db:create db:migrate
  6. run rake db:seed

The seed data contains a user with the following credentials:

email:    admin@test.com
password: passw0rd

Login as that user and check out the albums.

Problems? Issues?

If you have any problems at all with the setup of the Rails app or the Backbone code, please file an issue.

Ruby on Rails

This application requires:

  • Ruby 2.1.0
  • Rails 4.1.0

License

MIT