This is a real-time chat application built using WebSockets, allowing users to create or join chat rooms and exchange messages with other members in the same room.
- Create or Join Rooms: Users can either create a new chat room or join an existing one.
- Real-Time Messaging: Messages are instantly shared with all members in the same room.
- Room Isolation: Messages are not shared across different rooms.
- WebSockets for RTC: Enables real-time communication without page refresh.
- HTML, CSS, JavaScript: For building a simple and responsive UI.
- GitHub Pages: Used for hosting the frontend.
- Node.js & Express.js: Handles server-side logic.
- Native HTTP Server: Used alongside Express.js for efficient handling.
- WebSockets: Enables real-time bidirectional communication.
- Render.com: Used for hosting the backend.
- Frontend: Hosted on GitHub Pages - Chat App Frontend
- Backend: Hosted on Render - Chat App Backend
To run the project locally:
For the frontend:
- Clone this repository.
- Navigate to the frontend folder.
- Open
index.htmlin your browser using serve npm package.
For the backend:
- Navigate to the backend folder.
- Install dependencies using
npm run build. - Start the server with
npm run start. - The server runs on
http://localhost:3000.
This project is licensed under the MIT License - see the LICENSE file for details.