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>
155 lines
3.6 KiB
Batchfile
155 lines
3.6 KiB
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
echo ========================================
|
|
echo VERIFICATION INSTALLATION
|
|
echo ========================================
|
|
echo.
|
|
|
|
set ERRORS=0
|
|
|
|
REM Vérifier Python
|
|
echo [1/10] Verification Python...
|
|
python --version >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [X] Python n'est PAS installe
|
|
set /a ERRORS+=1
|
|
) else (
|
|
echo [OK] Python est installe
|
|
)
|
|
|
|
REM Vérifier Git
|
|
echo.
|
|
echo [2/10] Verification Git...
|
|
git --version >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [X] Git n'est PAS installe
|
|
set /a ERRORS+=1
|
|
) else (
|
|
echo [OK] Git est installe
|
|
)
|
|
|
|
REM Vérifier Docker
|
|
echo.
|
|
echo [3/10] Verification Docker...
|
|
docker --version >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [X] Docker n'est PAS installe
|
|
set /a ERRORS+=1
|
|
) else (
|
|
echo [OK] Docker est installe
|
|
|
|
REM Vérifier si Docker tourne
|
|
docker ps >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [!] Docker est installe mais ne tourne PAS
|
|
echo Ouvrez Docker Desktop!
|
|
set /a ERRORS+=1
|
|
) else (
|
|
echo [OK] Docker tourne
|
|
)
|
|
)
|
|
|
|
REM Vérifier Flutter
|
|
echo.
|
|
echo [4/10] Verification Flutter...
|
|
flutter --version >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [X] Flutter n'est PAS installe
|
|
set /a ERRORS+=1
|
|
) else (
|
|
echo [OK] Flutter est installe
|
|
)
|
|
|
|
REM Vérifier venv Backend
|
|
echo.
|
|
echo [5/10] Verification Backend venv...
|
|
if exist backend\venv\Scripts\activate.bat (
|
|
echo [OK] Backend venv existe
|
|
) else (
|
|
echo [X] Backend venv n'existe PAS
|
|
echo Lancez INSTALL_WINDOWS.bat
|
|
set /a ERRORS+=1
|
|
)
|
|
|
|
REM Vérifier .env
|
|
echo.
|
|
echo [6/10] Verification Backend config...
|
|
if exist backend\.env (
|
|
echo [OK] Backend .env existe
|
|
) else (
|
|
echo [X] Backend .env n'existe PAS
|
|
echo Lancez INSTALL_WINDOWS.bat
|
|
set /a ERRORS+=1
|
|
)
|
|
|
|
REM Vérifier Docker containers
|
|
echo.
|
|
echo [7/10] Verification Infrastructure Docker...
|
|
cd docker 2>nul
|
|
if %errorlevel% equ 0 (
|
|
docker-compose ps >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [!] Docker Compose n'est PAS configure
|
|
set /a ERRORS+=1
|
|
) else (
|
|
docker-compose ps | findstr "Up" >nul
|
|
if %errorlevel% equ 0 (
|
|
echo [OK] Infrastructure Docker tourne
|
|
) else (
|
|
echo [!] Infrastructure Docker ne tourne PAS
|
|
echo Lancez: docker-compose up -d
|
|
set /a ERRORS+=1
|
|
)
|
|
)
|
|
cd ..
|
|
)
|
|
|
|
REM Vérifier Frontend dependencies
|
|
echo.
|
|
echo [8/10] Verification Frontend dependencies...
|
|
if exist frontend\.flutter-plugins-dependencies (
|
|
echo [OK] Frontend dependencies installees
|
|
) else (
|
|
echo [X] Frontend dependencies PAS installees
|
|
echo Lancez: flutter pub get
|
|
set /a ERRORS+=1
|
|
)
|
|
|
|
REM Vérifier la connexion au Backend
|
|
echo.
|
|
echo [9/10] Verification Backend API...
|
|
curl -s http://localhost:8000/docs >nul 2>&1
|
|
if %errorlevel% equ 0 (
|
|
echo [OK] Backend API repond!
|
|
) else (
|
|
echo [!] Backend API ne repond PAS
|
|
echo Verifiez que le backend tourne
|
|
)
|
|
|
|
REM Vérifier les ports
|
|
echo.
|
|
echo [10/10] Verification Ports...
|
|
netstat -an | findstr ":8000.*LISTENING" >nul 2>&1
|
|
if %errorlevel% equ 0 (
|
|
echo [OK] Port 8000 utilise (Backend)
|
|
) else (
|
|
echo [!] Port 8000 LIBRE (Backend pas lance?)
|
|
)
|
|
|
|
echo.
|
|
echo ========================================
|
|
if %ERRORS% EQU 0 (
|
|
echo TOUT EST OK ! 👍
|
|
echo ========================================
|
|
echo.
|
|
echo Vous pouvez lancer: START_WINDOWS.bat
|
|
) else (
|
|
echo %ERRORS% ERREUR(S) DETECTEE(S) ❌
|
|
echo ========================================
|
|
echo.
|
|
echo Corrigez les erreurs ci-dessus avant de lancer l'app.
|
|
)
|
|
echo.
|
|
pause
|