Files
AudiOhm/INSTALL_WINDOWS.bat
root a89c7894cf Initial commit: AudiOhm - Alternative Spotify avec streaming YouTube
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>
2026-01-18 20:08:36 +00:00

114 lines
3.0 KiB
Batchfile

@echo off
echo ========================================
echo SPOTIFY LE 2 - INSTALLATION AUTO
echo ========================================
echo.
REM Vérifier si Python est installé
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERREUR] Python n'est pas installe !
echo Telechargez Python 3.11+ sur: https://www.python.org/downloads/
pause
exit /b 1
)
REM Vérifier si Git est installé
git --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERREUR] Git n'est pas installe !
echo Telechargez Git sur: https://git-scm.com/download/win
pause
exit /b 1
)
echo [1/6] Verification de Docker...
docker --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ATTENTION] Docker n'est pas installe.
echo Voulez-vous installer Docker Desktop maintenant?
echo Cela va ouvrir le navigateur...
timeout /t 5
start https://www.docker.com/products/docker-desktop/
echo.
echo Une fois Docker installe, relancez ce script.
pause
exit /b 1
)
echo [OK] Docker est installe!
echo.
echo [2/6] Demarrage de l'infrastructure (PostgreSQL + Redis)...
cd docker
docker-compose up -d
if %errorlevel% neq 0 (
echo [ERREUR] Erreur lors du demarrage de Docker.
pause
exit /b 1
)
echo [OK] Infrastructure demarree!
echo.
echo [3/6] Installation des dependances Backend...
cd ..\backend
REM Créer venv si n'existe pas
if not exist venv (
echo Creation de l'environnement virtuel Python...
python -m venv venv
)
REM Activer venv et installer
call venv\Scripts\activate.bat
echo Installation des packages Python...
pip install --upgrade pip -q
pip install -r requirements.txt -q
echo [OK] Backend pret!
echo.
echo [4/6] Configuration du Backend...
if not exist .env (
echo Creation du fichier .env...
copy .env.example .env
echo [ATTENTION] Editez backend\.env et changez SECRET_KEY!
echo Appuyez sur une touche pour continuer...
pause >nul
)
echo [OK] Backend configure!
echo.
echo [5/6] Initialisation de la base de donnees...
echo Creation des tables...
python -c "from app.core.database import init_db; import asyncio; asyncio.run(init_db())"
if %errorlevel% neq 0 (
echo [ATTENTION] Erreur lors de l'init DB. Peut-etre que la DB existe deja?
)
echo [OK] Base de donnees prete!
echo.
echo [6/6] Installation des dependances Frontend...
cd ..\frontend
echo Installation des packages Flutter...
flutter pub get -q
if %errorlevel% neq 0 (
echo [ERREUR] Erreur lors de flutter pub get.
echo Verifiez que Flutter est bien installe: https://docs.flutter.dev/get-started/install
pause
exit /b 1
)
echo [OK] Frontend pret!
echo.
echo ========================================
echo INSTALLATION TERMINEE !
echo ========================================
echo.
echo Pour demarrer l'application:
echo 1. Lancer START_WINDOWS.bat
echo.
echo Ou manuellement:
echo Terminal 1 (Backend): cd backend ^&^& venv\Scripts\activate ^&^& uvicorn app.main:app --reload
echo Terminal 2 (Frontend): cd frontend ^&^& flutter run
echo.
pause