This is a real-time chat application built with Node.js, Express, Socket.IO, and a simple frontend using HTML, CSS, and JavaScript. The app supports multiple chat rooms, allowing users to join different rooms and chat with others in real-time.
- User authentication by entering a username.
- Join or create chat rooms by entering a room name.
- Real-time messaging within chat rooms.
- Typing indicators to show when users are typing.
- Online user count display.
- Responsive and clean UI design.
- Backend: Node.js, Express, Socket.IO
- Frontend: HTML, CSS, JavaScript
- Real-time Communication: WebSockets via Socket.IO
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install dependencies:
npm install
-
Start the server:
npm start
-
Open your browser and navigate to:
http://localhost:3000
- Enter a username to join the chat.
- Enter a chat room name to join or create a new room.
- Start sending messages in the chat room.
- See who is online and when others are typing.
server.js- Backend server and Socket.IO setup.public/- Frontend static files:index.html- Main HTML file.style.css- Stylesheet for the app.script.js- Frontend JavaScript handling UI and Socket.IO client.
package.json- Project metadata and dependencies.
Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.
This project is licensed under the MIT License.
For questions or support, please contact Nilesh Mete nilesh1234mete@gmail.com