Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 1.62 KB

README.md

File metadata and controls

63 lines (49 loc) · 1.62 KB

Vaccination stats per municipality

Dashboard to visualize the progress of covid vaccinations per municipality.

Numbers are imported on a daily basis from Vaccinnet+. Vaccinnet+ is the platform of the Flemish Government to manage the covid vaccinations.

CSV endpoint: https://www.laatjevaccineren.be/vaccination-info/get

Build Hugo website

A statically generated Hugo site.

Build:

cd website
hugo -D --minify

Dev server (http://localhost:1313):

cd website
hugo server --minify --ignoreCache

Import & process CSV

A python script that downloads the CSV, with the daily vaccination status, and computes the numbers for all available municipalities. The CSV will be added to the data folder. The output of the crunched numbers (JSON dumps) will be added to the Hugo data folder per municipality.

cd scripts
python process.py fetch 11-03-2021
python process.py crunch

Shortcut to download, crunch, commit & push a daily update.

./update.sh

Deployment

Webpage is hosted on AWS Amplify and automatically deployed on each commit.

AWS Amplify build script. Needs to be copy/pasted in the AWS Amplify Console.

version: 1
applications:
  - frontend:
      phases:
        build:
          commands:
            - hugo -D --minify
      artifacts:
        baseDirectory: public
        files:
          - '**/*'
    appRoot: website

Other