9c504d2c3d
Features: - Frontend Flutter avec thème néon cyberpunk - Backend FastAPI avec streaming YouTube - Base de données PostgreSQL + Redis - Authentification JWT complète - Recherche multi-source (DB + YouTube) - Playlists CRUD avec drag & drop - Queue management - Settings avec audio quality - Interface adaptative (Desktop + Mobile) Tech Stack: - Frontend: Flutter 3.2+, Riverpod - Backend: Python 3.11+, FastAPI - Database: PostgreSQL 15+ - Cache: Redis 7+ - Streaming: yt-dlp + FFmpeg 🚀 Generated with Claude Code Co-Authored-By: Claude <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
|