Repository navigation
Expand file tree
/
Copy pathinstall.bat
More file actions
61 lines (54 loc) · 1.45 KB
/
Copy pathinstall.bat
File metadata and controls
61 lines (54 loc) · 1.45 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
@echo off
echo ===================================================
echo Advanced AI Chatbot - Installation Script
echo ===================================================
echo.
:: 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/
echo and try again.
pause
exit /b 1
)
echo [✓] Node.js is installed
echo.
:: Create necessary directories
echo Creating necessary directories...
if not exist data mkdir data
if not exist data\mongodb mkdir data\mongodb
echo [✓] Directories created
echo.
:: Install server dependencies
echo Installing server dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo Error: Failed to install server dependencies.
pause
exit /b 1
)
echo [✓] Server dependencies installed
echo.
:: Install client dependencies
echo Installing client dependencies...
cd client
call npm install
if %ERRORLEVEL% NEQ 0 (
echo Error: Failed to install client dependencies.
cd ..
pause
exit /b 1
)
cd ..
echo [✓] Client dependencies installed
echo.
echo ===================================================
echo Installation completed successfully!
echo.
echo You can now start the application using:
echo - start.bat
echo - OR: node start-app.js
echo ===================================================
echo.
pause