A real-time chat application that enables users to connect and communicate instantly with friends, colleagues, and communities.
RealTimeChat is a lightweight, browser-based chat application built with Node.js, Express, and Socket.io. It allows users to join chat rooms, send public messages in global chat, and communicate privately with other users in real-time.
- User Authentication: Simple username-based login system
- Global Chat Room: Public chat space for all connected users
- Private Messaging: One-on-one conversations between users
- Active User List: Shows all currently connected users
- Real-time Updates: Instant message delivery and user status updates
- Responsive Design: Works on both desktop and mobile devices
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express
- Real-time Communication: Socket.io
- Development Tools: Nodemon
realtimechat/
├── .gitignore # Git ignore file
├── README.md # Project documentation
├── package.json # Project dependencies
├── package-lock.json # Dependency lock file
├── server.js # Main server file with Socket.io setup
├── app.js # Client-side Socket.io implementation
├── index.html # Main entry page with login form
├── favicon.png # Website favicon
-
Clone the repository:
git clone https://github.com/yourusername/realtimechat.git -
Navigate to the project directory:
cd realtimechat -
Install dependencies:
npm install -
Start the development server:
npm start -
Open your browser and navigate to:
http://localhost:3000
- Enter a username on the login page
- Join the global chat room automatically
- View active users in the sidebar
- Click on a user's name to start a private conversation
- Type messages in the input field and press Enter or click the send button
The application is currently deployed on Vercel at: https://real-time-chat-anyone.vercel.app/
To contribute to this project:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the ISC License - see the LICENSE file for details.
- Socket.io for the powerful real-time engine
- Express.js for the web server framework
- Node.js community for incredible tools and support


