Please follow the official installation guide to install Poetry.
It is recommended to use Python virtual environment, so you don't pollute your system Python environment.
# Install dependencies
poetry install
# Activate Python virtual environment
eval "$(poetry env activate)"
If you want to add a new dependency, please use poetry add
command.
For example, to add python-dotenv
dependency, run:
poetry add python-dotenv
# Create .env file (by copying from .env.example)
cp .env.example .env
black . # Check Python code style
isort . # Sort Python imports
# Quick Start
flask run
# To verify that the app is running, go to the /status endpoint