This service returns data on covid-19 cases from a local cache that is updated by an external ArcGIS server hosted by the WHO.
This service requires the following ENV variables:
TOKENS=<stringified-json-object-with-Turn-numbers-as-keys-and-Turn-auth-tokens-as-values>
TURN_URL=<url-for-Turn-instance>
It can be configured with the following optional ENV variables:
DATABASE_URL="sqlite://cache.db
SENTRY_DSN="<sentry-dsn>"
DEBUG="turn*"
yarn
yarn sync # sync the database based on ENV or defaults
yarn start
To sync (migrate) the database
docker run who-arcgis:latest migrate
To run the HTTP server
docker run who-arcgis:latest run
To do both in one go
docker run who-arcgis:latest migrate_and_run