A REST API for the US COVID-19 data
2.3K
A REST API for the US COVID-19 data gathered by nytimes.
hub.docker.com/repository/docker/desholmes/covid-19-us-api.
A hosted version version of the API can be found at covid-19-us-api.dholmes.co.uk.
The following starts a local server running on port 8000:
docker run -it -p 8000:8000 desholmes/covid-19-us-api:1.0.0
| URL | Description | Hosted Link | Local Link |
|---|---|---|---|
| /us/counties/ | Returns county-level data: date, county, state, fips, cases, deaths | hosted | local |
| /us/counties/?date=2020-03-20 | Returns county-level data for a date: date, county, state, fips, cases, deaths | hosted | local |
| /us/states/ | Returns state-level data: date, county, state, fips, cases, deaths | hosted | local |
| /us/states/?date=2020-03-20 | Returns state-level data for a date: date, county, state, fips, cases, deaths | hosted | local |
Development takes place inside a docker container to:
make build-cold stand your local env up from scratch (not to be used for PROD)covid_19_us will cause the app to reloadCTL+c to stop the docker containerIf you want to configure the application step-by-step follow the steps below:
make setup: To create the .env file from .env-dist.env:
python3 manage.py runserver, with live reloading of files changed in covid_19_us (default 1)add_me with a random string (default 'add_me')make build: To create the docker imagemake run: To run the docker image as a containermake build-run1.0.5: Hotfix to handle query string for GA tracking1.0.4: Adding GA tracking to monitor hosted API usage1.0.3: Adding GNU GENERAL PUBLIC V3 LICENSE and CORS Allow all headers1.0.2: Added caching for response dataframes1.0.1: Added a hosted public version of the API1.0.0: Base repo with DBless Django appContent type
Image
Digest
Size
101.7 MB
Last updated
over 6 years ago
docker pull desholmes/covid-19-us-api