Name Last Update
bin Loading commit data...
flaskr Loading commit data...
tests Loading commit data...
var/log Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
content.yml Loading commit data...
docker-compose.yml Loading commit data...
main.py Loading commit data...
manage.py Loading commit data...
requirements.txt Loading commit data...
uwsgi.ini Loading commit data...

README.md

Travel Carbon Footprint Calculator

Overview

  • Content is in content.yml.
  • Configuration is in content.yml.
  • HTML templates are in flaskr/templates.
  • Estimation Models are in flaskr/laws.
  • Controllers are in flaskr/controllers.

Installation

Tested only on Python 2.7. Sprint.

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py createdb

Development

source venv/bin/activate
export FLASK_APP=flaskr
export FLASK_ENV=development
export FLASK_RUN_EXTRA_FILES="content.yml"
flask run

Then, visit http://localhost:5000

We're trying to remove the need for the export statements, but…