Teaching app displaying name and message in various formats.
- Technologies:
- Flask
- Git
- pytest
- mockup
- Flake8
- In the project we use virtual environment to create hermetic environment for the application:
#we create a virtual environment for application libriaries in Windows OS:
#add Python interpreter
#activating hermetic environment
venv\Scripts\activate
pip install -r requirements.txt
pip install -r test_requirements.txt
pip list
Check: 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