/express-chat

express-chat is a chat application built on Node.js, Express and MongoDB. Demo :

Primary LanguageCSS

Express-chat

Express chat is a node.js multi-server chat application. Messages are sent with Socket-IO and saved in MongoDB.

Requirements

  • Node.js >= v0.6.2
  • MongoDB and Redis installed and running.

Installation

  • git clone git://github.com/Tug/express-chat.git
  • cd express-chat
  • npm install .

Configuring

The config.json file will overwrite properties definied in config.js. Edit it to set your configuration properties such as database host, port, username, password, etc.

Running

  • node app or
  • node app myconfig.js

TODO

  • Reimplement Mubsub and socket.io-mongodb to reuse a mongo connection (don't use mongoskin). The goal would be to use MongoDB for PubSub and get rid of Redis.