Reimplementing node.js chat example in CoffeeScript BDD style using jasmine
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
reading
spec
.gitignore
Readme.markdown
bootstrap.coffee
client.js
index.html
jquery-1.2.6.min.js
server.coffee
style.css

Readme.markdown

BDD NodeChat

This is a re-implementation of the node sample chat room application. The client side was virtually left untouched, but the chat server was entirely rewritten using CoffeeScript in a BDD manner using Jasmine. The router,

fu.js
used by the chat server was replaced with the node-router.

Why?

I just wanted to see how easy (or not) it is to write JavaScript/CoffeeScript server side apps in a behavior driven way. I was positively surprised.

To run:

Compile using CoffeeScript

If not installed:

npm install -g coffee-script
Compile server and bootstrapper:
coffee -c *.coffee

Start 'em up:

node bootstrapper