Enzo BAREA, Clément GORSE, Noé MUANZA
Simple API that returns example records from a database.
- you need to install uv
- you must have a PostgreSQL instance available with an
exampletable - you must delete the
.tmpfrom the/infrastructure/terraform.tfvars.tmpand replace the dummy strings with your own informations
# Install Python in the right version
uv python install
# Install dependencies and create virtual env
uv sync# Export environment variables to connect to the PostgreSQL database...
export DATABASE_HOST=
export DATABASE_PORT=
export DATABASE_NAME=
export DATABASE_USER=
export DATABASE_PASSWORD='' # Use single quotes to avoid shell interpolation with characters like $ or #
# ...and the storage account
export STORAGE_ACCOUNT_URL=
# Run the application
uv run fastapi dev examples/examples.pyuv run pytest tests/
They go on: