Spaces:
Running
Running
| @echo off | |
| REM VR180 Converter Startup Script for Windows | |
| echo π Starting VR180 Converter... | |
| REM Check if Python is installed | |
| python --version >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo β Python is not installed. Please install Python 3.9+ and try again. | |
| pause | |
| exit /b 1 | |
| ) | |
| REM Check if Node.js is installed | |
| node --version >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo β Node.js is not installed. Please install Node.js 16+ and try again. | |
| pause | |
| exit /b 1 | |
| ) | |
| REM Check if FFmpeg is installed | |
| ffmpeg -version >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo β οΈ FFmpeg is not installed. Video processing may not work properly. | |
| echo Please install FFmpeg: https://ffmpeg.org/download.html | |
| ) | |
| REM Create necessary directories | |
| echo π Creating directories... | |
| if not exist "backend\uploads" mkdir backend\uploads | |
| if not exist "backend\outputs" mkdir backend\outputs | |
| REM Install Python dependencies | |
| echo π Installing Python dependencies... | |
| cd backend | |
| pip install -r requirements.txt | |
| if %errorlevel% neq 0 ( | |
| echo β Failed to install Python dependencies | |
| pause | |
| exit /b 1 | |
| ) | |
| cd .. | |
| REM Install Node.js dependencies | |
| echo π¦ Installing Node.js dependencies... | |
| cd frontend | |
| npm install | |
| if %errorlevel% neq 0 ( | |
| echo β Failed to install Node.js dependencies | |
| pause | |
| exit /b 1 | |
| ) | |
| cd .. | |
| REM Build React app | |
| echo π¨ Building React app... | |
| cd frontend | |
| npm run build | |
| if %errorlevel% neq 0 ( | |
| echo β Failed to build React app | |
| pause | |
| exit /b 1 | |
| ) | |
| cd .. | |
| echo β Setup complete! | |
| echo. | |
| echo π― To start the application: | |
| echo Backend: cd backend ^&^& python app.py | |
| echo Frontend: cd frontend ^&^& npm start | |
| echo. | |
| echo π Access the application at: | |
| echo Frontend: http://localhost:3000 | |
| echo Backend: http://localhost:5000 | |
| echo. | |
| echo π For more information, see docs\README.md | |
| pause | |