Skip to content

Real-time chat application built with Node.js, Express, and Socket.IO, enabling users to join rooms, send messages, and see online users

License

Notifications You must be signed in to change notification settings

Ammaar-Alam/java-ChatApp

Repository files navigation

Chat Application

This project is a real-time chat application built with Node.js, Express, and Socket.IO. It allows users to join a chat room, send messages, and see other users in the room.

Live Demo

Experience the live chat without any setup. Join the conversation now on my website.

Features

  • Real-time messaging
  • Users can enter a username to join the chat
  • Displays all users currently in the chat room
  • Responsive design for both desktop and mobile devices
  • Users can create public chatrooms or create private chatrooms that are password protected

Chat GUI

Installation

Prefer to run it locally? Here's how:

  1. Clone the repository: git clone https://github.com/Ammaar-Alam/java-ChatApp
  2. Enter the project: cd java-Chatapp
  3. Install dependencies: npm install socket.io express
  4. Launch the server: npm start

The application will be running on http://localhost:1170.

Usage

After starting the server, open a web browser and go to http://localhost:1170. Enter a username to join the chat room. You can then start sending messages and see other users in the room.

Contributing

Contributions to improve the chat application are welcome. Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name.
  3. Make changes and commit them: git commit -am 'Add some feature'.
  4. Push to the branch: git push origin feature-branch-name.
  5. Create a new Pull Request.

License

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

Test Branch

This branch is used for implementing and testing new features before pulling to the main branch :)

Testing -> To-Do List

  • Implementing chatroom feature (allowing users to create their own private chatrooms and password protect them)
  • Fix user joined/left server message
  • Fix CSS before user submits login form
  • Fix chat-room div spacing and highlight
  • Fix bug after user enters incorrect password (can no longer join rooms even if correct password is inputted)
  • Add updated console logs (showing when a room is created in console and displaying its password; showing when a user leaves and joins a room)
  • Add ability for users to change their rooms as they please by clicking on any rooms in the available list on the right column
  • Fix bug where if a user enters an incorrect password for a room, their messages no long appear client-side in their current room

About

Real-time chat application built with Node.js, Express, and Socket.IO, enabling users to join rooms, send messages, and see online users

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published