On root folder, create a .env
file like bellow:
FLASK_APP=main.py
FLASK_ENV=development
PYTHONPATH=$(pwd)
after that, execute the following:
docker-compose up -d
flask run
To test application install pytest on your venv.
pip install pytest coverage
to test:
pytest
to code coverage
coverage run -m pytest
coverage report
or
coverage run -m pytest
coverage html
and access: htmlcov/index.html