From 68758dfa074f84dcefdf4f143ed882c0ce875733 Mon Sep 17 00:00:00 2001 From: Joel Jaimon Date: Fri, 19 Nov 2021 12:08:12 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A8initial=20setup=20and=20installatio?= =?UTF-8?q?n=20instruction=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolves #2 --- readme.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/readme.md b/readme.md index cd88f69..288c8a0 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,62 @@ For more details about the functionalities of the clone, please visit the follow 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= +REACT_APP_SERVER_URL=http://localhost:8181 +REACT_APP_PEER_SERVER_URL=http://localhost:9000 +``` + +**- whatsapp-server/.env** +``` +MONGO_PASSWORD= +MONGO_USERNAME= + +GAUTH_CLIENT_ID=1 +GAUTH_CLIENT_SECRET= + +JWT_REFRESH_SECRET=ERDTFGYUHIJKOftgybhjnkmTYFYGBHUNJ%^TUGHYNJKBVGFYGUHKJHVHFCV~BJHk +JWT_ACCESS_SECRET=TYFGHBJNKU*&YIUGJBHNKMLIYUHJKML<*&^YGHBNM +AWS_S3_REGION_NAME= + +AWS_ACCESS_KEY_ID= +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](https://user-images.githubusercontent.com/64752455/142682383-2371f184-0679-4574-9dce-89907541e37f.PNG) + +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 run dev` + +- In whatsapp-client run:
+`npm start` + +### Redux Store +https://user-images.githubusercontent.com/64752455/142684906-f56231a1-8c20-4304-afee-f305b43a2077.mp4 + +### Mongo DB: +![mongo-db](https://user-images.githubusercontent.com/64752455/142684716-194b2ba5-1a3f-4ee7-a987-f594e00b2ea1.PNG) + +### AWS S3: +![aws-s3](https://user-images.githubusercontent.com/64752455/142684407-1d79162e-b73b-41ab-a36d-ac408200f712.PNG) + +
+
+ ## 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.