This boilerplate is used for demo purposes as part of education sessions/trainings. It doesn't include many aspects which should be present in production-ready project setup. However, all the tools around the sample code are configured properly and can be reused in projects.
- Install pyenv (*Unix) or pyenv-win (Windows).
- Install latest python version as global one via pyenv. If you have already an installed Python on a system level, skip this step.
# Commands below illustrate what you need to do as an idea. # Exact commands might change depending on a particular OS. $ pyenv install -l | grep 3.11.5 $ pyenv install 3.11.5 $ pyenv global 3.11.5
- Install Poetry package manager.
- Install make CLI tool.
OR
# Debian-based Linux distro $ sudo apt update $ sudo apt install build-essential
# Windows $ choco install make
- Clone the repository.
- Execute
make build-all
.
You can see all steps documented with the following command:
$ make help
$ make init
$ make format
- Runs all checks on your local OS
$ make check
- Runs all checks inside a Linux Docker container:
$ make docker-check
$ make test
$ make run
$ make docker-build
$ make docker-run