Aller au contenu

Installation de l'API

Prérequis

  • Python 3.11+
  • PostgreSQL 15+
  • Redis 7+
  • Docker

Installation avec Docker

# Cloner le dépôt
git clone https://github.com/nospi510/tontine-app.git
cd tontine-app/tontine-backend

# Configurer l'environnement
cp .env.example .env
# Éditer .env avec vos informations

# demarrer les service 
docker compose up -d 

# Initialiser la base de données
docker compose exec app alembic upgrade head

Vérification

curl http://localhost:5100/health
# Réponse : {"status": "healthy", ...}