The screenshot above and those below were taken while the project was live and showing real data.
🏠 Homepage
✨ Demo — the hosted site has been retired, run it locally instead
npm installng buildnpm installng serveIt starts on the generated sample data, so there is nothing else to set up — no API key, no backend, no network. Remember that every figure on screen is fake; the dashboard shows a banner saying so.
Note: this is an Angular 9 project and its build toolchain needs Node 12 or 14. On a newer Node,
npm installwill fail while compilingnode-sass.
Dummy data is controlled by a single flag in src/environments/environment.ts (and
environment.prod.ts):
export const environment = {
production: true,
useDummyData: true, // set to false for live data
apiHost: 'https://api.coronastatistics.live' // and point this at your own deployment
};Set useDummyData to false and apiHost to your own instance of the Node server in server/
(below). The app's HTTP calls are unchanged, and the demo banner disappears on its own.
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 installnode server.jsThen set apiHost in src/environments/environment.ts to wherever you deployed it, as described in
Using a real API.
These endpoints are dead — api.coronastatistics.live no longer resolves. They are kept here as
a description of the shape the app expects, which is what the sample data generator reproduces and
what you would need to serve to run this against real data:
/all/countries/countries?sort={parameter}/countries/{country_name}/timeline/timeline/global/timeline/{country_name}
👤 Ossama Rafique
- Website: https://www.ossamarafique.com
- Twitter: @OssamaRafique
- Github: @OssamaRafique
- LinkedIn: @OssamaRafique
- Buy me a Coffee: https://ko-fi.com/ossamarafique
Give a ⭐️ if this project helped you!




