A modern, real-time chat application built with Node.js, Socket.io, and Bootstrap 5.
- Real-time Messaging: Instant message exchange using Socket.io
- Modern UI: Glassmorphism design with responsive Bootstrap 5 layout
- User Management: unique username creation with validation
- Active Users List: See who's currently online
- Typing Indicators: Visual feedback when others are typing
- Message Bubbles: Distinct styles for sent vs. received messages
- Validation: Client-side protection against empty messages and username constraints
- Responsive: Works seamlessly on desktop and mobile
- Separation of Concerns: Clean project structure with separated CSS/JS
Frontend:
- HTML5 & Semantic Structure
- CSS3 (Custom styles + Bootstrap 5)
- jQuery (DOM manipulation)
- Socket.io Client
Backend:
- Node.js
- Express.js
- Socket.io Server
-
Clone the repository:
git clone https://github.com/aadhar41/chat-app.git cd chat-app -
Install dependencies:
npm install
-
Start the server:
npm start # or node server.js -
Open in browser: Visit
http://localhost:3001
chat-app/
├── public/
│ ├── css/
│ │ └── style.css # Modern custom styles
│ ├── js/
│ │ └── chat.js # Client-side chat logic
│ └── images/ # Application screenshots
├── index.html # Main application entry
├── server.js # Express & Socket.io server
├── package.json # Dependencies
└── README.md # Documentation
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Aadhar Gaur
- GitHub: @aadhar41
- LinkedIn: aadhar-gaur-php


