A real-time chat application built using the MERN (MongoDB, Express, React, Node.js) stack. This open-source chat application allows users to sign up, log in, and chat in real time with other registered users.
- Real-time Messaging: Instant messaging between users with live updates.
- User Authentication: Secure user signup and login.
- User Profiles: Each user has a profile with a display name and avatar.
- Responsive Design: Fully responsive and mobile-friendly.
- Message Notifications: Visual notifications for new messages.
- Database: Stores users, messages, and chat rooms.
- Scalability: Designed to handle multiple users and large chat rooms.
https://chat-application-mern-black.vercel.app/
To get a local copy up and running, follow these steps.
- Node.js and npm (Node Package Manager)
- MongoDB (a MongoDB Atlas account or local MongoDB installation)
- Git
-
Clone the Repository
-
Install Dependencies for both client and server:
npm install cd frontend npm install -
Environment Variables: Create a
.envfile in theserverdirectory and add the following environment variables:MONGO_URL=your_mongodb_connection_string JWT_SECRET=your_jwt_secret_key PORT=8000
-
Start the Server:
npm run server
-
Access the Application: Open your browser and go to
http://localhost:8000
- Frontend: React, Axios, Socket.IO client
- Backend: Node.js, Express, Socket.IO
- Database: MongoDB
- Authentication: JSON Web Tokens (JWT)
Contributions are welcome! Here’s how you can help:
- Fork the project
- Create a branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request


