A Flask-based port of the Impact: Earth! calculator, with Jinja templates and static assets for impact effect modelling outputs.
Requirements:
- Python 3.10+
From the repository root:
-
Create a virtual environment. python3 -m venv .venv
-
Activate it. source .venv/bin/activate
-
Install dependencies. pip install -r requirements.txt
-
Run the Flask app. flask --app main run --host=0.0.0.0 --port=5000
-
Open in your browser. http://127.0.0.1:5000/
The app runs on Azure App Service as web app ese-impact (resource group Impact).
To deploy the current code, make sure you're logged in (az login), then run:
./deploy.sh
This zips the project (excluding .git, virtual environments, and tests) and
deploys it via az webapp deployment source config-zip, which triggers an
Oryx build (installing requirements.txt) and restarts the site. The app is
served at https://ese-impact.azurewebsites.net using Gunicorn.
Run the test suite from the repository root:
pytest
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for full terms.