ChatSphere is a WhatsApp clone built with the MERN stack. This repository contains the frontend part of the project, developed using React, Vite, and Tailwind CSS.
ChatSphere aims to provide a real-time chat application experience similar to WhatsApp, including features like messaging, video calls, status updates, and user settings.
- Real-time messaging with chat lists and chat windows
- Video call support using WebRTC (simple-peer)
- User status updates and previews
- User settings and support modal
- Emoji picker and message reactions
- Responsive and modern UI with Tailwind CSS and DaisyUI
- State management with Zustand
- Form handling with React Hook Form and validation with Yup
- Notifications with React Toastify
- Socket.io client for real-time communication
- React 19
- Vite (build tool)
- Tailwind CSS with DaisyUI
- Zustand for state management
- React Router DOM for routing
- Socket.io-client for real-time events
- Simple-peer for WebRTC video calls
- Axios for HTTP requests
- Date-fns for date/time utilities
- React Hook Form and Yup for form validation
- Framer Motion for animations
- Various MUI icons and React Icons
- Clone the repository:
git clone https://github.com/Ankitbhagat2062/WhatsAppClone.git
cd frontend- Install dependencies:
npm install- Create a
.envfile in the root if needed for environment variables (e.g., API URLs).
Start the development server with:
npm run devThe app will be available at http://localhost:3000 (or the port Vite assigns).
To build the optimized production bundle:
npm run buildTo locally preview the production build:
npm run previewsrc/- React components, pages, hooks, services, store, and utilitiespublic/- Static assets like favicon and imagespackage.json- Project dependencies and scriptsvite.config.js- Vite configuration
Check out the live demo of ChatSphere: ChatSphere Demo
The backend for ChatSphere is a separate MERN stack application that handles authentication, data persistence, and real-time socket communication. Ensure the backend server is running and accessible for the frontend to function properly.
Contributions are welcome! Please open issues or pull requests for bug fixes and new features.
Connect with me on various platforms:
| Social Media | UserName | Profile |
|---|---|---|
| ankit.bhagat.865533 | Ankit Bhagat | |
| AnkitBhaga53031 | Ankit Bhagat | |
| @ankitbhagat2064 | Ankit Bhagat | |
| ankitbhagat56547 | Ankit Bhagat | |
| ankit-bhagat-8483a0313 | Ankit Bhagat |
This project is licensed under the MIT License.
Made with ❤️ by ChatSphere Team
