Provides an API similar to elife-metrics
but powered by Data Hub.
Environment variables:
Name | Description | Default Value |
---|---|---|
REDIS_HOST | The hostname for redis | localhost |
REDIS_POST | The port for redis | 6379 |
- Python, ideally using
pyenv
(see.python-version
) - Docker to run Redis
make dev-venv
make dev-install
make dev-test
make start-redis
The server will be available on port 6379.
This will require redis to be available on localhost
(port 6379
).
make dev-start
The server will be available on port 8000.
You can access the API Docs via /docs
This will require redis to be available on localhost
(port 6379
).
make dev-refresh-data
This will load data from BigQuery into Redis.
- Docker
make build-dev test
make build start logs
The server will be available on port 8000.
You can access the API Docs via /docs
make stop