@echo off :: Gestionnaire d'immobilisations — lancement rapide (Windows) cd /d "%~dp0" if not exist ".venv" ( echo Premiere utilisation : creation de l'environnement Python... python -m venv .venv if errorlevel 1 ( echo ERREUR : Python 3 n'est pas installe. echo Telecharge-le sur https://www.python.org/downloads/ pause exit /b 1 ) ) .venv\Scripts\pip install -q -r requirements.txt if not exist "data" mkdir data set IMMOS_DB_PATH=%~dp0data\immos.db echo. echo Gestionnaire d'immobilisations - Chezlepro Inc. echo Ouvre http://localhost:8001 dans ton navigateur. echo Ctrl+C pour arreter. echo. start http://localhost:8001 .venv\Scripts\uvicorn app.main:app --host 127.0.0.1 --port 8001