Prithwis's picture
Force update scripts\start.bat - 1757355564
9af8c82 verified
@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