Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
example rails 3 app using backbone.js, coffeescript and mongoDB
branch: master

This branch is even with codebrew:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
spec
vendor/plugins
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Rails3-backbone-coffeescript

This is an example rails 3 app built with backbone.js, coffeescript and mongoDB (using mongoid)

Help and Info

To follow the development of this app, follow us on Twitter: http://twitter.com/codebrewstudios.

If you need any projects built using this stack feel free to contact us at services@codebrewstudios.com

Dependencies

  1. Ruby 1.9.2
  2. Rails 3
  3. Coffeescript 1.0
  4. mongoDB (any recent stable version should work, we use 1.8)

Using rvm is recommended

Project layout

The most interesting part of the project exists inside the app/coffeescripts folder. Its broken down into 4 main parts

  1. lib - javascript library files to use through out the application
  2. Controllers dir - this is where our backbone controllers live
  3. Model dir - this is where backbone models and collections are defined
  4. Views - backbone views (widgets)
  5. templates - handlebar.js templates to be used by our backbone views
Something went wrong with that request. Please try again.