Daily updates: [https://github.com/owid/covid-19-data]
After 2 years, the API will be updated to include more data and more features. Disease_stats.json is the current data. For more information: https://disease.sh
baseUrl = 'https://corona.lmao.ninja/v2/';
as of 2022, refers to data to another API...
baseUrl = 'https://disease.sh/v3/covid-19/';
Our 'disease.sh' version here: site
Before 2022:
Since 2022:
- At this moment NodeJS 18.18.0. Hint: eventually install and use nvm for easy installing and/or switching between node versions
- Clone this repository:
git clone https://github.com/JosVermoesen/ngb-covidstats
- Run
npm install
inside the project root. - Run
ng serve
in a terminal from the project root. - Profit. 🎉
- NodeJS
- https://github.com/coreybutler/nvm-windows/releases
- https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3
- Visual Studio Code
- Angular CLI:
npm i -g @angular/cli@16
-
bootstrap 4:
npm i bootstrap@4
-
bootswatch 4:
npm i bootswatch@4
-
jquery:
npm i jquery
-
fontawesome angular:
npm i @fortawesome/angular-fontawesome
-
fontawesome svg core:
npm i @fortawesome/fontawesome-svg-core
-
fontawesome free sold svg icons:
npm i @fortawesome/free-solid-svg-icons
-
bootstrap icons:
npm i bootstrap-icons
-
ngx-bootstrap:
npm i ngx-bootstrap
-
@ngx-translate/core:
npm i @ngx-translate/core
-
@ngx-translate/http-loader:
npm i @ngx-translate/http-loader
-
chart.js:
npm i chart.js
-
csvjson-csv2json:
npm i csvjson-csv2json
-
file-saver:
npm i file-saver
-
@types/file-saver:
npm i @types/file-saver
-
ng2-charts:
npm i ng2-charts
-
Or install all packages in one commandline:
npm i bootstrap@4 bootswatch@4 jquery @fortawesome/angular-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons bootstrap-icons ngx-bootstrap @ngx-translate/core @ngx-translate/http-loader chart.js csvjson-csv2json file-saver @types/file-saver ng2-charts
For use of bootstrap, add into file styles.css:
@import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
In angular.json, to avoid CommonJs warnings in development mode, add allowedCommonJsDependencies in the options section for chart.js:
"builder": "@angular-devkit/build-angular:browser",
"options": {
// other
"allowedCommonJsDependencies": [
"chart.js"
],
// other
For use of js from bootstrap and jquiry, add into scripts section:
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
Before building, set resolveJsonModule to 'true' :
"compilerOptions": {
// other
"resolveJsonModule": true,
// other
- Ex. corona module:
ng generate module modules/corona --route corona --module app.module
This app is on Angular 16. Update to latest Angular 16:
ng update @angular/cli@16 @angular/core@16
Follow the instructions in the Angular Update Guide to fix your app.
In terminal use npm outdated
to see what packages are requiring updates and what their current and wanted versions are.
This will also show you which packages are deprecated.
If you want to update a package to a version newer than what is specified in your package.json, you can do so by running npm update [package-name]@[version-number].
npm i -g @angular/cli