Installation

Application

Prerequisites:

To install fastapi-mvc from source first clone the repository and use make install target:

make install

By default make install target will search first for python3 then python executable in your PATH. If needed this can be overridden by PYTHON environment variable.

export PYTHON=/path/to/my/python
make install

Lastly if Poetry is not found in its default installation directory (${HOME}/.local/share/pypoetry) this target will install it for you. However, one can always point to existing/customize Poetry installation with environment variables:

export POETRY_HOME=/custom/poetry/path
export POETRY_CACHE_DIR=/custom/poetry/path/cache
export POETRY_VIRTUALENVS_IN_PROJECT=true
make install

Or using Poetry directly, should you choose:

poetry install

Infrastructure

Prerequisites:

Note

Makefile dev-env target uses docker for minikube, for other CRI you’ll need to modify this line in build/dev-env.sh MINIKUBE_IN_STYLE=0 minikube start --driver=docker 2>/dev/null

To bootstrap local minikube Kubernetes cluster exposing example application run:

make dev-env