A real-time, one-to-one chat application built with the MERN stack, Socket.io for bidirectional messaging, and Tailwind CSS for styling.
Live Preview > https://youtu.be/eJ02u7vVLCI?si=oJ-oJu56It1HDVpr
- ✅ JWT-backed authentication (signup, login, logout)
- 💬 Real-time messaging with Socket.io
- 👥 Online/offline user presence indicator
- 📥 Unread-message badges to highlight activity
- 🔒 Protected API routes via middleware
- 🎨 Responsive UI crafted with Tailwind CSS
- Frontend: React, Tailwind CSS, Vite
- Backend: Node.js, Express.js
- Database: MongoDB, Mongoose
- Real-Time: Socket.io
- Auth: JSON Web Tokens (stored in HttpOnly cookies)
- State Management: Zustand
💡 Usage Signup with a name, username, email & password.
Login to join the chat.
Select an existing conversation or start a new DM.
See online status & unread badges.
Chat in real time—messages appear instantly!
🤝 Contributing Fork this repository
Big THANKS to @Awtforex (YouTube)