Prithwis commited on
Commit
81f604a
Β·
verified Β·
1 Parent(s): d83527a

Upload scripts\start.bat with huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts//start.bat +78 -0
scripts//start.bat ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ REM VR180 Converter Startup Script for Windows
3
+
4
+ echo πŸš€ Starting VR180 Converter...
5
+
6
+ REM Check if Python is installed
7
+ python --version >nul 2>&1
8
+ if %errorlevel% neq 0 (
9
+ echo ❌ Python is not installed. Please install Python 3.9+ and try again.
10
+ pause
11
+ exit /b 1
12
+ )
13
+
14
+ REM Check if Node.js is installed
15
+ node --version >nul 2>&1
16
+ if %errorlevel% neq 0 (
17
+ echo ❌ Node.js is not installed. Please install Node.js 16+ and try again.
18
+ pause
19
+ exit /b 1
20
+ )
21
+
22
+ REM Check if FFmpeg is installed
23
+ ffmpeg -version >nul 2>&1
24
+ if %errorlevel% neq 0 (
25
+ echo ⚠️ FFmpeg is not installed. Video processing may not work properly.
26
+ echo Please install FFmpeg: https://ffmpeg.org/download.html
27
+ )
28
+
29
+ REM Create necessary directories
30
+ echo πŸ“ Creating directories...
31
+ if not exist "backend\uploads" mkdir backend\uploads
32
+ if not exist "backend\outputs" mkdir backend\outputs
33
+
34
+ REM Install Python dependencies
35
+ echo 🐍 Installing Python dependencies...
36
+ cd backend
37
+ pip install -r requirements.txt
38
+ if %errorlevel% neq 0 (
39
+ echo ❌ Failed to install Python dependencies
40
+ pause
41
+ exit /b 1
42
+ )
43
+ cd ..
44
+
45
+ REM Install Node.js dependencies
46
+ echo πŸ“¦ Installing Node.js dependencies...
47
+ cd frontend
48
+ npm install
49
+ if %errorlevel% neq 0 (
50
+ echo ❌ Failed to install Node.js dependencies
51
+ pause
52
+ exit /b 1
53
+ )
54
+ cd ..
55
+
56
+ REM Build React app
57
+ echo πŸ”¨ Building React app...
58
+ cd frontend
59
+ npm run build
60
+ if %errorlevel% neq 0 (
61
+ echo ❌ Failed to build React app
62
+ pause
63
+ exit /b 1
64
+ )
65
+ cd ..
66
+
67
+ echo βœ… Setup complete!
68
+ echo.
69
+ echo 🎯 To start the application:
70
+ echo Backend: cd backend ^&^& python app.py
71
+ echo Frontend: cd frontend ^&^& npm start
72
+ echo.
73
+ echo 🌐 Access the application at:
74
+ echo Frontend: http://localhost:3000
75
+ echo Backend: http://localhost:5000
76
+ echo.
77
+ echo πŸ“– For more information, see docs\README.md
78
+ pause