- Tech stack used: MERN stack and pusher tool
- git
- npm
- mongodb account
- account on pusher
- Clone the project using
https://github.com/Asthay97/whatsapp-clone.gitcommand in your terminal. - To run the backend and frontend,
- copy the Mongo connection url and ensure ur ip is whitelisted in mongodb.
- edit and paste : src/axios: baseUrl
-
: firebase.js -> config -
: Backend/server/pusher -> config
- Go to backend project directory using
cd whatsapp-Backend - Use
npm ito install all npm dependencies - Run using command
node server.js - Go to the project frontend directory using
cd whatsapp-clone - Use
npm ito install all npm dependencies - To run the frontend application on localhost use
npm startcommand.
- The frontend application runs (in development mode)
http://localhost:3000in the browser and backend onhttp://localhost:9000.
**Note to see messages from yourself, enter the message in input at bottom right. To see messages from the other user use: POST request in POSTMAN:
- API: POST --
http://localhost:9000/messages/newbody :{ "message":"3rd normal message", "name": " Friend1", "timestamp": "reatime", "received": false }



