node -v
npm -v
npm install -g @angular/cli
npm install
Maybe
npm run serve
ng build
npm install
Maybe
npm run serve
ng serve
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"
- https://api.covid19api.com/all
- https://api.covid19api.com/countries
- https://api.covid19api.com/countries?sort={parameter}
- https://api.covid19api.com/countries/{country_name}
- https://api.covid19api.com/timeline
- https://api.covid19api.com/timeline/global
- https://api.covid19api.com/timeline/{country_name}