prince-111 / DisCode

Communication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DisCode-App

Description

It is a real-time chat application built using Node.js, Express, Socket.io, RESTful Web Service. Some the features of this application are

  • Uses Express as the application Framework.
  • Real-time communication between a client and a server using Socket.io.
  • Uses RESTful Web Service for serve different platforms.
  • I am currently working on integrating mongoDB, mongoose to store the messages.

Working Procedure:

A connection is opened between the client and the server so that the client can send and receive data. This allows real-time communication using TCP sockets. This is made possible by Socket.io. The client connects to the server through a socket. Once connections is successful, client and server can emit and listen to events. Currently, I am using an array called ‘users’ to store the information of all the new users.As soon as a new user enters a chat room an object is created that contains all the information such as username, id and room. This object is pushed into the ‘users’ array. The repository contains details information about the code.

Features to add:
  • Authentication using jwt.
  • Database to store the messages.

Usage

 
  npm install
  npm start
  Go to http://localhost:3000/
  
Feel free to play with it.

Screenshots

image image

About

Communication


Languages

Language:JavaScript 39.0%Language:HTML 34.0%Language:CSS 27.0%