Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (24 loc) · 819 Bytes

README.md

File metadata and controls

40 lines (24 loc) · 819 Bytes

turn-who-arcgis

This service returns data on covid-19 cases from a local cache that is updated by an external ArcGIS server hosted by the WHO.

Getting started

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

Using the docker image

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