This is a real-time chat application developed using the MERN (MongoDB, Express.js, React.js, Node.js) stack with socket.io for WebSocket communication.
- 🌟 Tech stack: MERN + Socket.io + TailwindCSS + Daisy UI
- 🎃 Authentication && Authorization with JWT
- 👾 Real-time messaging with Socket.io
- 🚀 Online user status (Socket.io and React Context)
- 👌 Global state management with Zustand
- 🐞 Error handling both on the server and on the client
- Frontend: React.js, HTML/CSS, Tailwind, daisyUI
- Backend: Node.js, Express.js
- Database: MongoDB (using Mongoose for ODM)
- Real-time Communication: socket.io
Contributions are welcome! Feel free to fork the repository and submit pull requests.
git clone https://github.com/srijan-lamichhane/chatapp.git
PORT=...
MONGO_DB_URI=...
JWT_SECRET=...
NODE_ENV=...
npm run build
cd frontend
npm run dev
npm run server