pipenv install
Set flask
application environment variables:
export FLASK_APP=application.py
export FLASK_DEBUG=True
Set the GeoServer/Rasdaman URL environment variables. (If not set using environment variables, these will default to the URLs found in config.py
.):
export API_GS_BASE_URL=http://...
export API_RAS_BASE_URL=https://apollo.snap.uaf.edu/rasdaman/
Run the application:
pipenv run flask run
Example Permafrost Query:
Example Fire Query:
Example Precipitation Query:
Example Physiography Query
Due to the configuration of our services, we need to both update our API instance + restart our Varnish cache when necessary.
Prior to deploying, update the requirements.txt
:
pipenv run pip freeze > requirements.txt
git commit -am'update requirements.txt'
Instructions for this can be found here: