Skip to content

Vixk2021/flask-init-mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-init-mini

This project is a boilerplate for future Flask applications.

The steps below can be executed on any Unix-like system.

Setup SSH key

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

Installation

# 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

API

curl "http://localhost"; echo

Testing

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

About

Boilerplate for Flask project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published