Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatSphere Frontend

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.

Project Overview

ChatSphere aims to provide a real-time chat application experience similar to WhatsApp, including features like messaging, video calls, status updates, and user settings.

Features

  • 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

Tech Stack

  • 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

Installation

  1. Clone the repository:
git clone https://github.com/Ankitbhagat2062/WhatsAppClone.git
cd frontend
  1. Install dependencies:
npm install
  1. Create a .env file in the root if needed for environment variables (e.g., API URLs).

Running the Development Server

Start the development server with:

npm run dev

The app will be available at http://localhost:3000 (or the port Vite assigns).

Building for Production

To build the optimized production bundle:

npm run build

Preview Production Build

To locally preview the production build:

npm run preview

Project Structure

  • src/ - React components, pages, hooks, services, store, and utilities
  • public/ - Static assets like favicon and images
  • package.json - Project dependencies and scripts
  • vite.config.js - Vite configuration

Live Demo

Check out the live demo of ChatSphere: ChatSphere Demo

ChatSphere Screenshot.

Backend

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.

Contributing

Contributions are welcome! Please open issues or pull requests for bug fixes and new features.

📞 Contact & Social Media

Connect with me on various platforms:

Social Media UserName Profile
Facebook ankit.bhagat.865533 Ankit Bhagat
Twitter AnkitBhaga53031 Ankit Bhagat
YouTube @ankitbhagat2064 Ankit Bhagat
Instagram ankitbhagat56547 Ankit Bhagat
LinkedIn ankit-bhagat-8483a0313 Ankit Bhagat

License

This project is licensed under the MIT License.


Made with ❤️ by ChatSphere Team

About

This is an realtime chat app with webrtc audio/video call chat messge , login/signup with email or phone number verification otp.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages