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)