FastAPI application for generating coverage maps from PGSTAC.
The application is intended to be run via Docker only.
Create a shell file containing the required environment variables, for example:
# creds.sh
export DB_HOST=...
export DB_USER=...
export DB_PASSWORD=...
export DB_IP=...
export DB_PORT=...
export API_BASE_URL=...From the project root, build the Docker image:
docker build -t stac-coverage-maps .Run the container and pass the environment variables:
docker run --env-file creds.sh -p 4000:4000 stac-coverage-mapsOnce the container is running, the API will be available at:
API root: http://localhost:4000
Swagger UI: http://localhost:4000/docs
Coverage Map Viewer: http://localhost:4000/coverage/map