-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.bat
More file actions
42 lines (37 loc) · 966 Bytes
/
Copy pathsetup.bat
File metadata and controls
42 lines (37 loc) · 966 Bytes
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
@echo off
echo ==================================
echo VulnShop Setup Script
echo ==================================
echo.
echo WARNING: This application is INTENTIONALLY VULNERABLE
echo FOR SECURITY TRAINING PURPOSES ONLY
echo.
set /p confirm="Do you understand and wish to continue? (yes/no): "
if /i not "%confirm%"=="yes" (
echo Setup cancelled.
exit /b 1
)
echo.
echo Installing backend dependencies...
cd backend
call npm install
echo.
echo Initializing database...
call npm run init-db
echo.
echo Installing frontend dependencies...
cd ..\frontend
call npm install
echo.
echo ===================================
echo Setup complete!
echo ===================================
echo.
echo To start the application:
echo 1. Open Command Prompt 1: cd backend ^&^& npm start
echo 2. Open Command Prompt 2: cd frontend ^&^& npm start
echo.
echo Default admin credentials: admin/admin
echo See README.md for vulnerability documentation
echo.
pause