Brazilian website counting the days to the fall of Cunha: www.cunhajacaiu.com.br
Make sure you are working in an environment with:
Install the dependencies:
$ pip install -r requirements.txt
$ npm i
Set up your environmental variables (copy .env.sample
as .env
for example). Optionally you can add:
FALLEN
(default:False
) whether Cunha has fallen or notVOTING
(default:2016-04-17T23:37:00-03:00
) when we were told he's gonna be the next to fall (date and time formatted according to ISO 8601)ELM_MAKE_BIN
: (default:elm-make
) path to theelm-make
binary from Elm (installed vianpm
by default)UGLIFYJS_BIN
: (default:uglifyjs
) path to theuglifyjs
binary from UglifyJS2 (installed vianpm
by default)
GOOGLE_ANALYTICS
: Google Analytics tracking code ID (e.g.UA-XXXXXX-XX
)
Following Flask's new CLI set the FLASK_APP
environment variable to the entrypoint of the app and you're good to go:
$ export FLASK_APP=cunhajacaiu/__init__.py
$ flask run --reload
You can configure your virtualenv to automatically export and unset FLASK_APP
upon activation and deactivation. With your virtualenv activated:
$ ./bin/flask_app
Pull Requests are always welcomed.
Running tests requires Nose and elm-test (but at this point they are already installed for you).
$ nosetests
$ npm test
Copyright (c) 2016 Eduardo Cuducos.
Licensed under the MIT license.