Skip to content

WhatsApp-like chat application built using the MERN stack with real-time messaging functionality powered by Pusher.

Notifications You must be signed in to change notification settings

usama739/whatsapp-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

WhatsApp-like Chat Application

Whatsapp UI

This project is a WhatsApp clone built with the MERN stack. It includes a basic messaging feature where users can send and receive messages in real-time. The frontend is updated instantly upon receiving a new message using Pusher for real-time communication.

Technologies Used

  • Frontend: React.js
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • Real-time updates: Pusher

Installation

  1. Clone the repository:

    git clone https://github.com/usama739/whatsapp-clone.git
    cd whatsapp-clone
  2. Install server dependencies:

    cd whatsapp-backend
    npm install
  3. Install client dependencies:

    cd ../whatsapp-mern
    npm install

Setup

  1. Backend Configuration:

    • Create a .env file in the whatsapp-backend directory and add the following environment variables:
      MONGO_URI=your_mongodb_connection_string
      PORT=your_server_port
      PUSHER_APP_ID=your_pusher_app_id
      PUSHER_KEY=your_pusher_key
      PUSHER_SECRET=your_pusher_secret
      PUSHER_CLUSTER=your_pusher_cluster
  2. Frontend Configuration:

    • Create a .env file in the whatsapp-mern directory and add the following environment variables:
      REACT_APP_PUSHER_KEY=your_pusher_key
      REACT_APP_PUSHER_CLUSTER=your_pusher_cluster

Running the Application

  1. Start the backend server:

    cd whatsapp-backend
    nodemon server.js
  2. Start the frontend server:

    cd ../whatsapp-mern
    npm start
  3. Open your browser and navigate to http://localhost:3000.

About

WhatsApp-like chat application built using the MERN stack with real-time messaging functionality powered by Pusher.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published