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:
- http://localhost:5000/permafrost/point/gipl/65.0628/-146.1627
- http://localhost:5000/permafrost/point/gipl/62.906/-148.345
Example Fire Query:
Example Precipitation Query:
- http://localhost:5000/precipitation/point/65.028/-146.1627
- http://localhost:5000/precipitation/point/62.906/-148.345
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: