/chat-app

A simple chat app, using server side and public side.

Primary LanguageJavaScript

Chat App

This app is used for chatting with people having the same room name. A user has to provide his display name and a room name in which he/she wants to join.

Features

  • App is compatible with mobile phones as well.
  • This app provides different user_name to all users.
  • It provides the functionality of chatting in different rooms.
  • App shows which new user has joined the chat room and which one has left it.

Components

This project is build completely on front end as well as backend.

For front-end it includes html, css, javascript, bootstrap framework and few more. Back-end is completely built on Node.js using express. It uses express, moment and socket.io as npm dependencies. Socket.io is mainly used to provide communication between client and server side.

  • socket.io: Socket.IO enables real-time, bidirectional and event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.
  • express: Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • Moment.js is a free and open source JavaScript library that removes the need to use the native JavaScript Date object directly.

Clone

To clone entire repository run git clone https://github.com/suhailakhtar039/chat-app.git from command line.

Deployement

The app is deployed on heroku with following URL https://sheltered-mountain-53860.herokuapp.com/.

Steps

  1. Open the app by following the URL provided.
  2. It will ask for user name and room name in which you want to join.
  3. By providing the above information you will enter into that specific room and will be able to chat with everyone who are inside that room.
  4. It will also if any new member has joined the room or any existing member has left the room.