-
Do not forget to use the virtual python env:
python3 -m venv .venv source .venv/bin/activate -
Instal the dependencies:
pip install -r requirements.txt; pip install -r test_requirements.txt;
-
Check whether the app works, start it, and use
curlto call the app web api:PYTHONPATH=. FLASK_APP=hello_world flask run
curl 127.0.0.1:5000
curl 127.0.0.1:5000/outputs
curl '127.0.0.1:5000/?output=json' -
What is the code without tests:
PYTHONPATH=. py.test --verbose -s
-
Let's lint our code:
flake8 hello_world test main.py -
Place for your notes:
mateuszgrajner/hello_world_app
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|