This project is a boilerplate for future Flask applications.
The steps below can be executed on any Unix-like system.
This step is an option and can be omitted.
Create ssh key and add it to GitHub's SSH keys settings.
ssh-keygen
cat ~/.ssh/id_rsa.pub
# Cloning the source code
git clone https://github.com/ldynia/flask-init-mini.git
cd flask-init-mini
# Building and running the docker container
docker build --tag flask-mini --build-arg FLASK_DEBUG=True .
docker run --detach --name flask-app --publish 80:8080 --rm flask-mini
docker ps
curl "http://localhost"; echo
Unit test
docker exec flask-app pytest
Code coverage
docker exec flask-app coverage run -m pytest
docker exec flask-app coverage report
Stop container
docker stop flask-app