Blame view

README.md 702 Bytes
a9d173ce   Goutte   Add a bare-bones ...
1
2
3

# Travel Carbon Footprint Calculator

69f8c67f   Antoine Goutenoir   Doc check while r...
4
5
6
7
8
9
10
11
## 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`.

a9d173ce   Goutte   Add a bare-bones ...
12
13
14

## Installation

69f8c67f   Antoine Goutenoir   Doc check while r...
15
16
Tested only on Python `2.7`.  _Sprint._ 

a9d173ce   Goutte   Add a bare-bones ...
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    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…