This project is a Real-Time Chat Application built using MERN STACK to facilitate seamless communication. The application supports multiple users, real-time messaging, and delivers a clean and responsive user interface.
https://real-time-chat-application-kp6g.onrender.com
https://real-time-chat-application-kp6g.onrender.com/
- Real-Time Messaging: Instant updates using WebSocket or similar technologies.
- Multi-User Support: Handles multiple users simultaneously.
- Responsive UI: Optimized for desktop and mobile devices.
- Secure: Basic user authentication and data security.
- Theme change: 32 different theme can be used like(dark, light, cupcake)
- Scalable: Designed to support a growing user base.
- Frontend: React.js,Tailwind css, Daisy UI, Lucid react, zustand, redux, router, toaster .
- Backend: Node.js with Express.js and socket.io
- Database: MongoDB for storing user and message data
- Real-Time Communication: Socket.IO (or WebSocket)
- Deployment: (e.g., Vercel, Netlify for frontend, and render for backend)
Ensure you have the following installed on your system:
-
Clone the Repository
git clone <repository-link> cd real-time-chat-app
-
Install Dependencies Navigate to the
frontendandbackenddirectories and install dependencies:# Backend setup cd backend npm install # Frontend setup cd ../frontend npm install
-
Set Up Environment Variables Create a
.envfile in thebackenddirectory with the following keys:MONGODB_URI = PORT = 5001 JWT_SECRET = GijdhXZSjNwogLRv CLOUDINARY_CLOUD_NAME = CLOUDINARY_API_KEY= CLOUDINARY_API_SECRET = -
Run the Application Open two terminals:
- In one terminal, start the backend server:
cd backend npm start - In the other terminal, start the frontend server:
cd frontend npm start
- In one terminal, start the backend server:
-
Access the Application Open your browser and navigate to
http://localhost:5173.
- Sign Up / Log In: Create an account or log in to an existing one or fake account.
- Start a Chat: Search for other users and initiate a chat.
- Send Messages: Exchange messages in real-time.
- ** NOTE** : Authentication is not required , just use fake account example- hululu@email.com , pass- 123456;
https://real-time-chat-application-kp6g.onrender.com