-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.bat
More file actions
executable file
·68 lines (49 loc) · 1.42 KB
/
run.bat
File metadata and controls
executable file
·68 lines (49 loc) · 1.42 KB
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
@echo off
setlocal EnableDelayedExpansion
@REM Check for python installation
where python >nul 2>&1
if %errorlevel% neq 0 (
echo python is not in your PATH.
where python3 >nul 2>&1
if %errorlevel% neq 0 (
echo python3 is not in your PATH. Please install Python and add it to your system PATH.
pause
exit /b 1
) else (
echo python3 is available in PATH.
set "PYTHON=python3"
)
) else (
echo Python is available in PATH.
set "PYTHON=python"
)
echo =============================================
echo Setting up Python environment...
if not exist venv (
call !PYTHON! -m venv venv
echo venv created.
)
call venv\Scripts\activate
echo =============================================
echo Installing Python dependencies...
call !PYTHON! -m pip install --upgrade pip --quiet
call !PYTHON! -m pip install -r requirements.txt
echo Python dependencies installed.
echo =============================================
echo Setting up Node environment...
call npm install --silent
pushd Frontend
call npm install --silent
call npm audit fix --silent
popd
pushd Electron
call npm install --silent
call npm audit fix --silent
popd
echo Node environment setup complete.
echo =============================================
echo Launching app processes...
call npx concurrently ^
"cd Backend && python app.py" ^
"cd Frontend && npm run dev" ^
"cd Electron && npm start"