Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thlorenz/bdd_nodechat

Reimplementing node.js chat example in CoffeeScript BDD style using jasmine
https://github.com/thlorenz/bdd_nodechat

Last synced: 26 days ago
JSON representation

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

Awesome Lists containing this project

README

        

## BDD NodeChat

This is a re-implementation of the [node sample chat room application](http://github.com/ry/node_chat/tree/master).
The client side was virtually left untouched, but the chat server was entirely rewritten using [CoffeeScript](http://jashkenas.github.com/coffee-script/)
in a [BDD](http://en.wikipedia.org/wiki/Behavior_Driven_Development) manner using [Jasmine](http://pivotal.github.com/jasmine).
The router,

fu.js
used by the chat server was replaced with the [node-router](https://github.com/creationix/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