This is a real-time chat application built using the MERN (MongoDB, Express, React, Node.js) stack. The app allows users to send and receive messages in real time, and view online users. The application is designed with a responsive UI and features a smooth chat experience.
Check out the live version of the app: Chat App on Render
- Real-Time Messaging: Send and receive messages in real time using Socket.IO.
- User Authentication: Secure user authentication with JWT and bcrypt.
- Responsive Design: A clean and responsive design using React and Tailwind CSS.
- Online Users : Display online users in each chat.
- User-Friendly UI: Simple and intuitive user interface.
- Frontend: React, Vite, Tailwind CSS
- Backend: Node.js, Express, MongoDB, Socket.IO
- Authentication: JWT, bcrypt
- Deployment: Render
- Node.js (v14 or later)
- MongoDB (local or cloud-based)
- Clone the repository:
git clone https://github.com/aditya-krm/chat-app.git
cd chat-app
- Install the server dependencies: in the root directory
npm install
- Install the client dependencies: in the client directory
cd client
npm install
-
Create a
.env
file in the root directory and add the follow the .env.example file -
Run the development server:
npm run server
-
Run the client:
cd client npm run dev
-
open browser and go to the localhost url
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the ISC License.
- Author: Aditya Karmakar
- GitHub: @aditya-krm
- Live App: Chat App on Render