fizzbuzz/json-chat-nodejs
AJ ONeal 0d9c949287 some weird merge conflict... 2012-07-18 10:08:51 -06:00
..
public added chat specification 2011-08-15 14:46:18 -06:00
.gitignore added chat specification 2011-08-15 14:46:18 -06:00
README.md fixed queue -> stack 2011-08-16 09:33:43 -06:00
config.js added chat specification 2011-08-15 14:46:18 -06:00
package.json added chat specification 2011-08-15 14:46:18 -06:00
server.js added chat specification 2011-08-15 14:46:18 -06:00
tests.sh some weird merge conflict... 2012-07-18 10:08:51 -06:00

README.md

HTTP Chat Engine

Implement a chat server that only stores messages for 60 seconds.

Clients should be able to query for messages in ranges from since to until (in ms).

If since is omitted, the server should assume since=0

If until is in the past, the server should assume until={now} (and respond immediately).

If until is omitted, the server should respond the next time a message is sent to that room.

If until is in the future, the server should not respond until the appointed time, including all new messages in the room.

Node.JS Boilerplate:

npm install -g spark

cd ~/http-chat-nodejs
npm install # reads in package.json for deps
spark & # starts server.js according to config.js

Ender.JS Boilerplate:

npm install -g ender

cd ~/http-chat-nodejs/public
ender build jeesh querystring ahr2

Prep

rm -rf json-chat-nodejs/node_modules
rm -rf json-chat-nodejs/public/node_modules
rm -rf json-chat-nodejs/public/ender.*
tar czf json-chat.tar.gz json-chat-nodejs/