A simple chat demo for socket.io
$ cd socket.io
$ npm install
$ cd examples/chat
$ npm install
$ node .
And point your browser to http://localhost:3000
. Optionally, specify
a port by supplying the PORT
env variable.
- Multiple users can join a chat room by each entering a unique username on website load.
- Users can type chat messages to the chat room.
- A notification is sent to all users when a user joins or leaves the chatroom.
$git remote add openshift ssh://[email protected]/~/git/altp.git/
$rhc ssh -a image $tail app-root/logs/nodejs.log
MongoDB 2.4 database added. Please make note of these credentials:
Root User: admin
Root Password: ********
Database Name: image
Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/
ssh://[email protected]/~/git/image.git/
$rhc show-app altp --gears quota $rhc app-tidy
$rhc port-forward altp
/var/lib/openshift/5766b0f50c1e6601a800014e
export NODE_ENV=production (or development)
$rhc tail -a altp ssh -t [email protected] 'tail /log/*'
$rhc restart-app -a altp
$rhc app-stop -a altp
$rhc app-start -a altp