Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A demo of a Backbone app that works on the client and server
JavaScript CoffeeScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public/js
views
.gitignore
README.md
backbone.client.coffee
backbone.server.coffee
package.json
server.coffee
server.sync.coffee

README.md

Pipedream demo app from SpainJS talk

This is an example of a Backbone app that runs the same code on the server via Node.js and on the client.

You can watch the video of the presentation here: The Pipedream of Sharing Code Between Node and the Browser

To run the app, install node and npm, then run npm install

If you alter server.coffee, you will need to regenerate the browserified file (public/js/app.js). To regenerate that file run

node_modules/browserify/bin/cmd server.coffee -o public/js/app.js -i ./backbone.server -i socket.io
Something went wrong with that request. Please try again.