socket.io Real-time Chat

I recently want to use socket.io for a project. So for it i created a basic real time chat using socket.io in few minutes.

Style by MaterializeCSS

Github Repo

Run

  • Make sure you have Nodejs or iojs installed
  • Make sure you have gulp installed globally. If not run
1
npm install -g gulp
  • Clone this repo
1
git clone https://github.com/iamchathu/nodejs-socket-io-chat.git
  • Go to nodejs-socket-io-chat folder
1
cd nodejs-socket-io-chat
  • Then run
1
npm install
  • Then run the project by
1
gulp serve

(Better to use multiple windows of browser with same url)

Fork It, Use It

Todo

  • Scrollable chat
  • SPA Front-end with nicknames
  • Save chat messages with infinite scroll
Share Comments