View Code? Open in Web Editor
NEW
Test implementation of a Backbone.js app, powered by Node.js, it's templating engine Jade and socket.io
backbonejade.io's Introduction
A demo implementation of Backbone.js powered by Node.js, Express, Jade, Backbone.io
- Use of Jade to render initial HTML, and bootstrap a list of users (from dummy server DB :p) into backbone
- How socket.io is used on backbone.js, using Backbone.io
- CRUD on a list of users
- Use of dustjs-linkedin on the frontend to render html templates
- npm install
- node app.js
- Next fire up a few browsers and go to http://localhost:8080
- Click one of the names and see what happens to the other browsers!
- Try creating a new user / deleting them and see what happens to the other browsers too! The name changing effect also applies to newly added users
- Refresh your browsers to see if data persists
- Feel free to hack on this more to see what else you can do with socket.io + backbone
- package.json list a number of node packages many of which are not necessary but are just hot favourites, simply adding them for convenience