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=https://...
export API_RAS_BASE_URL=https://apollo.snap.uaf.edu/rasdaman/
Run the application:
pipenv run flask run
Example Permafrost Query:
- https://localhost:5000/permafrost/point/gipl/65.0628/-146.1627
- https://localhost:5000/permafrost/point/gipl/52.906/-148.345
Example Fire Query:
- https://localhost:5000/fire/point/65.0628/-146.1627
- https://localhost:5000/fire/point/52.906/-148.345
Example Geology Query
- https://localhost:5000/geology/point/69.606/-145.345
- https://localhost:5000/geology/point/56.606/-143.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: