Blame view

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

# Travel Carbon Footprint Calculator

a1f12452   Antoine Goutenoir   Add the new conte...
4
5
6
7
- https://travel-footprint-calculator.apps.goutenoir.com  (private demo)
- http://travel-footprint-calculator.irap.omp.eu  (official, for later)


69f8c67f   Antoine Goutenoir   Doc check while r...
8
9
10
11
12
13
14
15
## 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 ...
16
17
18

## Installation

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

a9d173ce   Goutte   Add a bare-bones ...
21
22
23
24
    virtualenv venv
    source venv/bin/activate
    pip install -r requirements.txt
    python manage.py createdb
b9fc86c3   Antoine Goutenoir   Secure the admin ...
25
26
    cp .env.dist .env
    nano .env
a9d173ce   Goutte   Add a bare-bones ...
27
28
29
30
31
32
33
34
35
36
37
38
39


## 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…