Skip to content

dvdknaap/NodeJS-realtime-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS realtime Chat

My First NodeJS app an realtime ChatBox

  • Chatbox is realtime with socket.io
  • Username to enter
  • Flood protection
  • Command line usage: /help
  • RequireJS module
  • Chat can customised by an settings array
  • Private messaging
  • On unreaded privated message(s), the sender in userlist blinks with the amount of unreaded messages
  • On unreaded privated message(s) the document title change to total unreaded message (animated)
  • Super user mode with telnet
  • Send an messag through telnet to an specific chat member
  • Kick an specific chat user through telnet

Requirements

  • async
  • bootstrap
  • express
  • jquery
  • requirejs
  • socket.io

Install requirements

sudo npm install

How to start

sudo node chatbox.js

How to start this chat as an service:

sudo forever start -l forever.log -o out.log -e err.log -a chatbox.js

Problems and fixes

  1. When you got problems with ubuntu server because it can't find the node command execute the following line:
sudo update-alternatives --install /usr/sbin/node node /usr/bin/nodejs 99

Demo

Realtime Chatbox demo

Telnet

telnet dutchprogrammer.nl 9102

About

My First NodeJS app an realtime ChatBox, username required to enter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published