Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Users of the CovApp have the option to contribute data for the population level assessment of the pandemic. They can provide their geolocation in form of their postal code along with their risk score. These data points can help medical experts to assess where in the country hotspots might be emerging. The Charité data donation services handles t…

License

Notifications You must be signed in to change notification settings

d4l-data4life/charite-data-donation

Repository files navigation

Charite Data Donation

Use Case

Users of the CovApp have the option to contribute data for the population level assessment of the pandemic. They can provide their geolocation in form of their postal code along with their risk score. These data points can help medical experts to assess where in the country hotspots might be emerging. The Charité data donation services handles the forwarding of the risk level and the postal code to a Charité database. Users can optionally consent to this data donation. If they do, they need to provide their postal code. The risk level is calculated based on the answers they provide. Both data points are written into a Charité database.

Building, Running, Testing

make build
make run
make test

Ops checks

Liveness and Readiness checks are meant for Kubernetes.

  • Liveness is a check that responds with HTTP code 200 if the application has started
  • Readiness is a check that responds with HTTP code 200 if the application is ready to serve requests (e.g., connected to the database)

Run in local Kubernetes

  1. Add localhost alias

    Add data-donation.local to `/etc/hosts' file. For example in the kubernetes.docker section:

    # To allow the same kube context to work on the host and the container:
    127.0.0.1 kubernetes.docker.internal galaxy.local
    # End of section
  2. Build the image

    export GITHUB_USER_TOKEN=<your-GH-API-token>
    make docker-build
  3. Deploy to local Kubernetes

    • make sure you have the right kubectl context selected (by default docker-desktop)

      kubectl config use-context docker-desktop
    • render templates and deploy manifests

      make kube-deploy
    • check that the pod is running

      kubectl get pod

Swagger API definition

The API specification can be found in /swagger/api.yml. To preview the specification:

  1. add a swagger viewer to VSCode
  2. open the yml file
  3. open the preview with SHIFT + OPTION + P

About

Users of the CovApp have the option to contribute data for the population level assessment of the pandemic. They can provide their geolocation in form of their postal code along with their risk score. These data points can help medical experts to assess where in the country hotspots might be emerging. The Charité data donation services handles t…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published