a89c7894cf
Backend: - FastAPI avec PostgreSQL et Redis - Authentification JWT complète - API REST pour musique, playlists, recherche - Streaming audio via yt-dlp - SQLAlchemy 2.0 async Frontend: - Flutter avec thème néon cyberpunk - State management Riverpod - Layout adaptatif desktop/mobile - Lecteur audio avec mini-player Infrastructure: - Docker Compose (PostgreSQL + Redis) - Scripts d'installation automatisés - Scripts de build pour exécutables Fichiers ajoutés: - BUILD_CLIENT_*.bat/sh: Scripts de compilation - BUILD_CLIENT_README.md: Documentation compilation - CHECK_FLUTTER.sh: Vérificateur d'environnement - requirements.txt mis à jour pour Python 3.13 - Modèles SQLAlchemy corrigés (metadata -> extra_metadata) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
echo "========================================"
|
|
echo " SPOTIFY LE 2 - DÉMARRAGE"
|
|
echo "========================================"
|
|
echo ""
|
|
|
|
# Vérifier que l'installation a été faite
|
|
if [ ! -d "backend/venv" ]; then
|
|
echo "[ERREUR] Backend n'est pas installé!"
|
|
echo "Lancez INSTALL.sh d'abord."
|
|
exit 1
|
|
fi
|
|
|
|
echo "[1/3] Démarrage du Backend FastAPI..."
|
|
cd backend
|
|
source venv/bin/activate
|
|
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 &
|
|
BACKEND_PID=$!
|
|
echo "[OK] Backend démarré (PID: $BACKEND_PID)"
|
|
|
|
echo ""
|
|
echo "[2/3] Attente du backend (5 secondes)..."
|
|
sleep 5
|
|
|
|
echo ""
|
|
echo "[3/3] Démarrage du Frontend Flutter..."
|
|
cd ../frontend
|
|
|
|
# Detecter la plateforme
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
# macOS
|
|
echo "Détection automatique de la plateforme..."
|
|
PLATFORM=$(flutter devices | grep -E "macos|windows|android" | head -1 | awk '{print $1}')
|
|
else
|
|
# Linux
|
|
echo "Choisissez la plateforme:"
|
|
echo " 1. Linux Desktop"
|
|
echo " 2. Android (Émulateur ou appareil)"
|
|
echo ""
|
|
read -p "Votre choix (1 ou 2): " choice
|
|
|
|
if [ "$choice" == "1" ]; then
|
|
PLATFORM="linux"
|
|
else
|
|
PLATFORM="android"
|
|
fi
|
|
fi
|
|
|
|
echo "Lancement sur $PLATFORM..."
|
|
flutter run -d $PLATFORM
|
|
|
|
# Nettoyage à la fermeture
|
|
kill $BACKEND_PID 2>/dev/null
|