Teaching App displaying name and message in various formats.
-
Technologies:
- Flask
- Git
- pytest
- mockup
- Flake8
-
In the project we use a virtual environment to create a hermetic environment for the application:
# we create a hermetic environment for application libraries in Windows OS:
# add Python interpreter
# activating hermetic environment
venv\Scripts\activate
pip install -r requirements.txt
pip install -r test_requirements.txt
pip listCheck: tutorial venv and flask libraries.
- Run the application:
# as a program from Terminal
python main.py# from browser or using curl
curl 127.0.0.1:5000/- Run tests (see: http://doc.pytest.org/en/latest/capture.html):
pytest
pytest --verbose -s