This demo was written to illustrate how authentication can be added to multi-user app built on Backbone.js and Node.
- Underscore.js - A utility-belt library for JavaScript without extending any of the built-in JavaScript objects.
- 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.
- jQuery - A fast, concise, library that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX.
- node.js - Event-driven I/O server-side JavaScript environment based on V8.
- Express - High performance, high class web development for node.js.
- Jade - High performance template engine heavily influenced by Haml and implemented with JavaScript 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.
- Passport - Simple, unobtrusive authentication for Node.js.
- Timeago - jQuery plugin for automatically updating fuzzy timestamps.
$ mongod
- Change the working directory to the project root:
$ cd <path to directory>
- Install dependencies using the node package manger (npm):
$ sudo npm install
- Start the server:
$ sudo npm start
- Visit http://localhost:3000 in a web browser.
Auth Based on Madhums's Node Demo
- Jeff Jenkins - Added Authentication Layer
Public Domain