Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Backbone demo application for DDD North

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 static
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 server.rb
Octocat-spinner-32 task.rb

DDD North - Introduction to Backbone.js

Running the application

  1. Clone the repository

  2. Install Ruby

    • I wrote it against 1.9.2 but it may work against 1.8.7, I've not used anything new
  1. Install bundler

  2. bundle install

  3. ruby server.rb

  4. Go to http://localhost:4567/ in your browser

    • I only tested the application in Chrome so it might not work in other browsers at all, patches gratefully received

Be aware that this is a demonstration application so it's running against an in-memory database of sorts (an array) and you will lose any data you put into it when you stop the server.



Backbone supplies structure to JavaScript-heavy applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.


Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects. It's the tie to go along with jQuery's tux.


jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.


ICanHaz is a simple & powerful client-side templating for jQuery or Zepto.js leveraging mustache.

Something went wrong with that request. Please try again.