-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
93 lines (85 loc) · 2.28 KB
/
install.bat
File metadata and controls
93 lines (85 loc) · 2.28 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
echo ========================================
echo Interview Platform Setup
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python is not installed or not in PATH
echo Please install Python 3.10+ from https://www.python.org/downloads/
pause
exit /b 1
)
REM Check if Node.js is installed
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Node.js is not installed or not in PATH
echo Please install Node.js from https://nodejs.org/
pause
exit /b 1
)
echo [1/4] Installing Python Agent Dependencies...
echo ========================================
cd agent
if not exist venv (
echo Creating Python virtual environment...
python -m venv venv
)
call venv\Scripts\activate
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo [ERROR] Failed to install Python dependencies
pause
exit /b 1
)
deactivate
cd ..
echo [SUCCESS] Python agent dependencies installed
echo.
echo [2/4] Installing Backend Dependencies...
echo ========================================
cd backend
call npm install
if %errorlevel% neq 0 (
echo [ERROR] Failed to install backend dependencies
pause
exit /b 1
)
cd ..
echo [SUCCESS] Backend dependencies installed
echo.
echo [3/4] Installing Frontend Dependencies...
echo ========================================
cd frontend
call npm install
if %errorlevel% neq 0 (
echo [ERROR] Failed to install frontend dependencies
pause
exit /b 1
)
cd ..
echo [SUCCESS] Frontend dependencies installed
echo.
echo [4/4] Environment Setup Check...
echo ========================================
if not exist agent\.env (
echo [WARNING] agent/.env not found
echo Please copy agent/.env.example to agent/.env and add your API keys
)
if not exist backend\.env (
echo [WARNING] backend/.env not found
echo Please ensure backend/.env exists with required configuration
)
echo.
echo ========================================
echo Installation Complete!
echo ========================================
echo.
echo Next steps:
echo 1. Configure agent/.env with API keys
echo 2. Configure backend/.env with database settings
echo 3. Start MongoDB if not running
echo 4. Run start.bat to launch all services
echo.
pause