A real-time chat application built using the MERN Stack (MongoDB, Express.js, React, Node.js) with WebSockets for seamless communication.
- User Authentication: Secure login and registration system
- Real-time Messaging: Instant chat functionality using WebSockets
- Private & Group Chats: One-on-one and group conversations
- Online Status Indicator: Shows user presence in real-time
- Responsive UI: Optimized for both mobile and desktop
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- WebSockets: Socket.io for real-time communication
-
Clone the repository
git clone https://github.com/ankitpathak62/ChatAPP.git cd ChatAPP -
Install dependencies
- Backend:
npm install
- Frontend:
npm install
- Backend:
-
Set up environment variables
- Create a
.envfile in theserverfolder and add:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
- Create a
-
Run the application
- Start the backend server:
npm start
- Start the frontend:
npm start
- Start the backend server:
- Register or log in to the chat application.
- Start private conversations or create group chats.
- Enjoy real-time messaging with WebSockets.
- Typing indicators
- Message read receipts
- Voice and video calls
This project is open-source and available under the MIT License.
Feel free to contribute and enhance the project! 🚀