Getting real time data of countries affected with covid-19, with a detailed report of total cases, people tested positive, recovered, total deaths. The dashboard drills down to country specfic data as well as an overview of all countries with a summary of world report at home page. Recharts is used for data visualization.
** Node.js v10.15.3**
A) Run npm start
command at root of your project and by default react application runs on localhost :3000
B) Using the Endpoint for Frontend:
- GET All Data :
http://ExternalIP/all
- GET All Country :
http://ExternalIP/countries
- GET Country Specific :
http://ExternalIP/countries/:country
C) To run the application after deploying it in AWS:
- First deploy the covid-19 backend present at
https://github.com/josephnp732/Covid19-Backend
- Then change the ** fetchUrl ** variable present in with configFile/urlFile.js file with AWS domain
- Dockerize your front end using
Docker Build .
in the root directory of the project and push the project onto DockerHub with a desired tagname - Change the image name (Line 13) in
deployment-frontend.yaml
from the backend repo to the name of the docker image you just deployed on DockerHub - Redeploy the frontend deployment using
kubectl apply -f ./deployments/deployment-frontend.yaml
in the backend repo - Hit the frontend AWS Hostname to see the output after deploying it in AWS EKS Cluster
D) To see the charts click on "Charts" button and click again to close it
E) To see all country data click on "Get World report" and for a particular country details, enter country name on input box, click outside the box and then hit "Get Country Specific data" button
Open Front-end Hostname in Chrome (Open frontend with Chrome Securities Disabled)
a) ** MacOS Command: ** open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security
b) ** For Windows: ** Open command line interface where you have web browser installed and disable web security for it. For example, to disable security for chrome type chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security