Skip to content
 
 

Repository files navigation

Group members

Enzo BAREA, Clément GORSE, Noé MUANZA

Examples API

Simple API that returns example records from a database.

Prerequisites

  • you need to install uv
  • you must have a PostgreSQL instance available with an example table
  • you must delete the .tmp from the /infrastructure/terraform.tfvars.tmp and replace the dummy strings with your own informations

Installation

# Install Python in the right version
uv python install

# Install dependencies and create virtual env
uv sync

Run

# 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.py

Run tests

uv run pytest tests/

They go on:

About

Dummy API used for JUNIA ISEN Cloud computing final project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages