weilu / bdd_nodechat

Reimplementing node.js chat example in CoffeeScript BDD style using jasmine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Reimplementing node.js chat example in CoffeeScript BDD style using jasmine