@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