Skip to content

stacywebb/Covid_Dashboard

Repository files navigation

Covid-19 Live Dashboard

Check for dependencies

node -v
npm -v

Install ng

npm install -g @angular/cli

Build the Angular project

npm install

Maybe

npm run serve
ng build

Run the Angular Project

npm install

Maybe

npm run serve
ng serve

Run the Node.js Project (open server folder)

Rename config.example.json to config.json and fill in the details

{
  "redis": {
    "host": "host",
    "password": "1234"
  },
  "keys": {
    "all": "coronastatistics:all",
    "countries": "coronastatistics:countries",
    "timeline": "coronastatistics:timeline",
    "timelineglobal": "coronastatistics:timelineglobal"
  },
  "interval": 600000
}
npm install
node server.js

Edit src/app/core/services/getdata.service.ts and replace with your own api url.

  private host = "https://api.covid19api.com/country/us/status/deaths"

API Endpoints