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.
Experience the live chat without any setup. Join the conversation now on my website.
- 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
Prefer to run it locally? Here's how:
- Clone the repository:
git clone https://github.com/Ammaar-Alam/java-ChatApp
- Enter the project:
cd java-Chatapp
- Install dependencies:
npm install socket.io express
- Launch the server:
npm start
- Access at localhost:1170
The application will be running on https://localhost:1170.
After starting the server, open a web browser and go to https://localhost:1170. Enter a username to join the chat room. You can then start sending messages and see other users in the room.
Contributions to improve the chat application are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make changes and commit them:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin feature-branch-name
. - Create a new Pull Request.
This project is licensed under the MIT License - see the license file for details.
This branch is used for implementing and testing new features before pulling to the main branch :)
Implementing chatroom feature (allowing users to create their own private chatrooms and password protect them)Fix user joined/left server messageFix CSS before user submits login formFix chat-room div spacing and highlightFix 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 columnFix bug where if a user enters an incorrect password for a room, their messages no long appear client-side in their current room- Save messages server-side instead of client sisde so they won't disappear on user refresh