File size: 1,925 Bytes
9af8c82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@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