TejasReddy9 / basic-chat-box

Node.js application serving a chat-room

Home Page:https://tejasreddy9.github.io/basic-chat-box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat-box

This project is a node.js application serving a chat-room where people can be joined by their names. People who are online are shown aside. I've also deployed this node app on Heroku.

Dependencies

  • node.js / npm
  • socket.io
  • express
  • ejs
  • nodemon

Usage

  • Download and run npm install.
  • Then, run locally, npm start.
  • Go the localhost server with port 8000.
  • Open different sessions while running, fix usernames and start chatting.
  • In case, you wanted to add your own IP address, update index.js like this example:
var server = app.listen(port, "192.168.56.102", function(){
	console.log('Listening to requests on port ' + port);
});
  • Also, in continuation of above point, please update public/js/chat.js also with your IP address and port number as below:
var socket = io.connect("http://192.168.56.102:8000/");

About

Node.js application serving a chat-room

https://tejasreddy9.github.io/basic-chat-box


Languages

Language:JavaScript 54.1%Language:HTML 34.4%Language:CSS 11.5%