Code Monkey home page Code Monkey logo

joel-jaimon / whatsapp-clone Goto Github PK

View Code? Open in Web Editor NEW
61.0 3.0 21.0 12.3 MB

A complete clone of whatsapp web using React Js, Node Js, Socket.io, Redis, Node Clusters, etc. MongoDB is used as the database. Use of 3rd party library is minimum. Redux is used for state management and redux saga for handling side effects. AWS S3 is used for storage.

HTML 0.21% JavaScript 54.23% SCSS 7.06% TypeScript 38.50%
reactjs javascript redux material-ui whatsapp whatsapp-web redux-saga redux-toolkit css3 html5

whatsapp-clone's Introduction

Whatsapp Clone

Whatsapp Web Clone (New Version)

whatsapp.clone.mp4

A complete clone of whatsapp web using React Js as the front end and Node Js as the back end. MongoDB is used as the database. Use of 3rd party library is minimum. Redux is used for managing the entire state and redux saga for handling side effects. AWS S3 is used for data storage and retrieval.

Used Technologies:

a) Front End: React Js, Redux, Redux-Saga, Axios, Socket Client, Peer JS, React Spring.
b) Back End: Node Js, Redis, Cluster, Socket.io, Mongo DB, Peer and Express, AWS S3.

For more details about the functionalities of the clone, please visit the following link.
https://joeljaimon.com/whatsapp-clone/about

Initial Setup:

Create a .env file inside of client and server folders respectively:

- whatsapp-client/.env

REACT_APP_GAUTH_CLIENT_ID=<Your_gauth_client_id>
REACT_APP_SERVER_URL=http://localhost:8181
REACT_APP_PEER_SERVER_URL=http://localhost:9000

- whatsapp-server/.env

MONGO_PASSWORD=<your_mondodb_password>
MONGO_USERNAME=<your_mongo_username>

GAUTH_CLIENT_ID=1<Your_gauth_client_id>
GAUTH_CLIENT_SECRET=<Your_gauth_client_secret>

JWT_REFRESH_SECRET=ERDTFGYUHIJKOftgybhjnkmTYFYGBHUNJ%^TUGHYNJKBVGFYGUHKJHVHFCV~BJHk
JWT_ACCESS_SECRET=TYFGHBJNKU*&YIUGJBHNKMLIYUHJKML<*&^YGHBNM<LO*&^%REW@ERFVBHJUYGVBN

AWS_S3_BUCKET_NAME=<s3_bucket_name>
AWS_S3_REGION_NAME=<s3_region_name>

AWS_ACCESS_KEY_ID=<access_key_id>
AWS_SECRET_ACCESS_KEY=<aws_secret_access_key>

Make sure to create a IAM user with the required policies. For this project I've used my custom policy: policy example

Also, you should have node installed, also a Redis server running on its default port (6379). Once the above part is done.

Installation:

  • In whatsapp-server run:
    npm i && npm run dev

  • In whatsapp-client run:
    npm i && npm start

Redux Store

Whatsapp.Clone.Flow.Redux.mp4

Mongo DB:

mongo-db

AWS S3:

aws-s3



Whatsapp clone using firebase (Old Version):

A modified version of WhatsApp Web where you can create global rooms and chat in realtime. It uses firebase for google authentication and uses its NoSQL and SQL hybrid as database. React Context API is used for managing global state.

Repo link
https://github.com/joel-jaimon/whatsapp-clone/tree/e4967914370de302d5dd3f8bfb5fc88e82d2b147

Preview
enter image description here

whatsapp-clone's People

Contributors

joel-jaimon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

whatsapp-clone's Issues

What are the steps to clone this project

Hi, your project looks really cool! I'm new to this but can you teach me step by step what I should do after I git clone this project? And how do I depoly this project? I would really appreciate a reply. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.