Skip to content

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Impact Earth (Flask Port)

A Flask-based port of the Impact: Earth! calculator, with Jinja templates and static assets for impact effect modelling outputs.

Quick Start

Requirements:

  • Python 3.10+

From the repository root:

  1. Create a virtual environment. python3 -m venv .venv

  2. Activate it. source .venv/bin/activate

  3. Install dependencies. pip install -r requirements.txt

  4. Run the Flask app. flask --app main run --host=0.0.0.0 --port=5000

  5. Open in your browser. http://127.0.0.1:5000/

Deploying to Azure

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.

Tests

Run the test suite from the repository root:

pytest

Licence

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for full terms.

Releases

Packages

Contributors

Languages