agrega README e instalador automatico

This commit is contained in:
CarmenGlez20
2026-05-23 09:13:24 -06:00
parent cbf167593b
commit 094095bf72
2 changed files with 204 additions and 0 deletions

61
install.bat Normal file
View File

@@ -0,0 +1,61 @@
@echo off
echo ============================================
echo EcoTrack Celaya - Instalador automatico
echo Equipo BioCode - ITC / TecNM 2026
echo ============================================
echo.
:: Verificar Node.js
echo [1/4] Verificando Node.js...
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: Node.js no esta instalado.
echo Descargalo en https://nodejs.org y vuelve a ejecutar este archivo.
pause
exit /b 1
)
echo OK - Node.js detectado.
:: Verificar Python
echo [2/4] Verificando Python...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: Python no esta instalado.
echo Descargalo en https://python.org y vuelve a ejecutar este archivo.
pause
exit /b 1
)
echo OK - Python detectado.
:: Instalar dependencias del frontend
echo [3/4] Instalando dependencias del frontend (npm install)...
cd /d "%~dp0ecotrack"
call npm install
if %errorlevel% neq 0 (
echo ERROR al instalar dependencias del frontend.
pause
exit /b 1
)
echo OK - Frontend listo.
:: Instalar dependencias del backend
echo [4/4] Instalando dependencias del simulador...
cd /d "%~dp0simulador-backend"
python -m venv venv
call venv\Scripts\activate
pip install fastapi uvicorn
if %errorlevel% neq 0 (
echo ERROR al instalar dependencias del backend.
pause
exit /b 1
)
echo OK - Simulador listo.
echo.
echo ============================================
echo Instalacion completada exitosamente!
echo Ahora haz doble clic en start.bat
echo y abre http://localhost:5174
echo ============================================
echo.
pause