LIVE CHATAPP Mongo + Express + React + Nodejs (MERN FULL STACK) + Build and Deploy a Real Time Chat App | JWT, Socket.io
Welcome to the Live ChatApp, a real-time chat application built using the MERN stack (MongoDB, Express, React, Node.js). This project demonstrates how to create a full-stack application with real-time communication using Socket.io and secure authentication with JWT.
- 🔄 Real-time Messaging: Communicate instantly with other users.
- 🔒 User Authentication: Secure login and signup using JWT.
- 📱 Responsive Design: Optimized for both desktop and mobile devices.
- 👤 User Profiles: Customizable user profiles with avatars.
- 🟢 Online Status: See which users are currently online.
- 🔔 Message Notifications: Receive notifications for new messages.
The Live ChatApp provides a seamless and intuitive user experience:
- Signup and Login: Users can create an account or log in using their credentials. Passwords are securely hashed using bcrypt.
- User Dashboard: After logging in, users are greeted with a dashboard displaying their contacts and recent conversations.
- Real-time Chat: Users can select a contact and start chatting in real-time. Messages are instantly delivered and displayed.
- Profile Management: Users can update their profile information and avatar.
- Online Status: Users can see which of their contacts are currently online, enhancing the real-time experience.
- Notifications: Users receive notifications for new messages, ensuring they never miss an important conversation.
To get started with the Live ChatApp, follow these steps:
-
Clone the repository:
git clone https://github.com/Msr7799/chat-app-yt.git cd chat-app-yt
-
Set up environment variables:
Create a .env file in the root directory and add the following:
MONGO_DB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret PORT=5000 NODE_ENV=development
-
Build the frontend:
npm run build
أو
yarn run build
-
Run the application:
npm start
أو
yarn start
- MongoDB: NoSQL database for storing user and message data.
- Express: Web framework for building the backend API.
- React: Frontend library for building the user interface.
- Node.js: JavaScript runtime for the backend server.
- Socket.io: Library for real-time communication.
- JWT: JSON Web Tokens for secure authentication.
- bcrypt: Library for hashing passwords.
- Tailwind CSS: Utility-first CSS framework for styling.
We welcome contributions to the Live ChatApp! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the ISC License.
Mohamed Alromaihi
Thank you for using the Live ChatApp! We hope you enjoy the experience. If you have any questions or feedback