Skip to content

ChatGram can be used to create chat rooms and let others join them for a group chat. One can create as many number of rooms as required.

License

Notifications You must be signed in to change notification settings

Suyash2810/ChatGram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGram

Introduction

ChatGram is the place to create chat rooms and let your others join them for a quick chat. One can create as many number of rooms as required.

Explanation

ChatGram is implemented in nodejs using the socket.io module. One can access it here

In ChatGram one can create a room using a specific username followed by the room name. Once a room is created, other people can join the same room. However there is a limit that has been set for the number of users in a room.

To change the limit of users in a particular room, follow the steps below.

  • Go to validations.js file.
  • Find this function
  • Replace the number to the limit required.

Note:

The data in the room for a specific user exists as long as the user is connected to the room. As soon as the user disconnets the data is deleted automatically.

Prerequisites

To run the project one will need Node Package Manager to be installed in the system. To install it in the system click here.

Further a command line interface will be required to run the node scripts. Use git bash.

Steps

To run the project, the required dependencies are needed to be installed.

1. Open the command line and execute npm -v to check if npm has been installed. The version will be shown. If not see prerequisites.
2. Execute npm install.
3. The dependencies will be installed as listed in the package.json file. 

Testing

  • For testing the scripts run the command node test-watch.

Running the program

The project can be run in two ways.

1. Execute the command node server/server.js
2. Otherwise use the command nodemon server/server.js
3. Since the port has been set to 3000, the project can be accessed at localhost:3000.

  • One can access the working sample of the project here

NOTE:

There are validations that have been done on the username and room. The user will be alerted if the input username and room name does not meet the criteria and will be redirected back to the join page.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

ChatGram can be used to create chat rooms and let others join them for a group chat. One can create as many number of rooms as required.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published