Technologies Used In This Demo
- Backbone.js - Gives structure to web 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 API over a RESTful JSON interface.
- backbone.iobind - Bind socket.io events to backbone models & collections. Also includes a drop-in replacement for Backbone.sync using socket.io.
- jQuery - A fast, concise, library that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX.
- Express - High performance, high class web development for node.js.
- Stylus - Expressive, dynamic, robust CSS for node.js
- Mongoose - A MongoDB object modeling tool designed to work in an asynchronous environment.
- MongoDB - A scalable, high-performance, open source NoSQL database.
- Redis - an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
Getting the Demo
- Fork this repo by clicking the "Fork" button above
- Clone your fork to make a local working copy. For example:
$ git clone firstname.lastname@example.org:[your_github_username]/backbone-boilerplates.git $ cd backbone-boilerplates/option7_node_socketio
Setting up Dependencies
- Install Redis.
- Start the Redis Server from another terminal window:
- Make sure your current directory is option7_node_socketio before step 7.
$ pwd [your repos path]/backbone-boilerplates/option7_node_socketio
- Install dependencies using the node package manger (npm).
$ sudo npm link
Running the Demo
- Start the Todos demo server from a different terminal window:
$ node app
- Visit http://localhost:3000 in a web browser.
- Jérôme Gravel-Niquet - Created original demo
- Addy Osmani - Cleanup, edits
- James O'Reilly - Added server-side tech from node.js to MongoDB.