Web based Whatsapp clone with real time private chat and group chat features.
MIT License
How to run:
Clone this repository or fork it.
git clone https://github.com/kimlimjustin/whatsapp-clone.git
on your command linegit clone https://github.com/<your username>/whatsapp-clone.git
Inside server
folder, create a new file named .env
which stores informations about server side such as ATLAS_URI
, SECURITY_KEY
and CLIENT_URL
informations
ATLAS_URI
variableSECURITY_KEY
variableCLIENT_URL
variableATLAS_URI =mongodb+srv://admin:<password>@cluster0.8aezk.gcp.mongodb.net/whatsappClone?retryWrites=true&w=majority
SECURITY_KEY = D73373D9B4ED6FEC5B8B2DAF6WA929B1C7D14CDC88B196EBDCCEA77AFF7BB9
CLIENT_URL = http://localhost:3000/
Inside client
folder, create a new file called .env
which stores your information about client side such as REACT_APP_SECURITY_KEY
and REACT_APP_BACKEND_URL
informations
REACT_APP_SECURITY_KEY
variable, note that this value must same as SECURITY_KEY
in server/.env
fileREACT_APP_BACKEND_URL
REACT_APP_SECURITY_KEY = D73373D9B4ED6FEC5B8B2DAF6WA929B1C7D14CDC88B196EBDCCEA77AFF7BB9
REACT_APP_BACKEND_URL = http://localhost:5000
Install all dependencies
client
directory type npm install
(or yarn
)server
directory type npm install
(or yarn
)Run it on node js:
client
directory type npm start
(or yarn
)server
directory type npm start
(or yarn
)