I built the project on Ubuntu Kylin 14.04 with node.js.
You need to install node.js and several modules to get the chat room built.
install node.js
Run "node -v" to confirm node.js has been installed successly.
get npm
And if you have installed Git you can clone the project by:
git clone --recursive git://github.com/isaacs/npm.git
.
Now you have necessary files. Install npm by running
node cli.js install npm -gf
at the root directory of npm files.
You need 3 modules to install and you have npm.
Run:
npm install express -gd
,
npm install socket.io -gd
and
npm install mysql -gd
to install express module, socket.io module and mysql module globally.
Remove "-gd" in each command to install modules in current directory.
Run:
node ./index.js
at the root directory of DRRR-chat-room to start the chat room server.
Visit localhost:3000
.
There is a default user in the database now with
username: admin
password: secret
and registering new users need invite code from users signed in.