-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
73 lines (67 loc) · 1.79 KB
/
setup.bat
File metadata and controls
73 lines (67 loc) · 1.79 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
@echo off
setlocal enabledelayedexpansion
echo ======================================
echo Setup Script for Queue Project
echo ======================================
echo.
REM Check if Node.js is installed
echo Checking for Node.js...
where node >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo Node.js not found. Installing Node.js via winget...
winget install OpenJS.NodeJS
if %ERRORLEVEL% neq 0 (
echo Failed to install Node.js. Please install it manually.
pause
exit /b 1
)
echo Node.js installed successfully.
echo Please restart your terminal and run this script again to refresh PATH.
pause
exit /b 0
) else (
echo Node.js is already installed.
node --version
)
echo.
REM Check if oha is installed
echo Checking for oha...
where oha >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo oha not found. Installing oha via winget...
winget install hatoo.oha
if %ERRORLEVEL% neq 0 (
echo Failed to install oha. Please install it manually.
pause
exit /b 1
)
echo oha installed successfully.
echo Please restart your terminal and run this script again to refresh PATH.
pause
exit /b 0
) else (
echo oha is already installed.
oha --version
)
echo.
echo ======================================
echo All dependencies are installed!
echo ======================================
echo.
echo Installing Node.js packages...
call npm install
if %ERRORLEVEL% neq 0 (
echo Failed to install Node.js packages.
pause
exit /b 1
)
echo.
echo Setup complete!
echo.
echo Next steps:
echo 1. Install Python dependencies: npm run fastapi:install
echo 2. Start Express server: npm run express:start
echo 3. Start FastAPI server: npm run fastapi:dev
echo 4. Run load tests: npm run express:load or npm run fastapi:load
echo.
pause