-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-app.bat
More file actions
50 lines (43 loc) · 1.26 KB
/
Copy pathstart-app.bat
File metadata and controls
50 lines (43 loc) · 1.26 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
@echo off
echo ========================================
echo Prompt Management Tool
echo ========================================
echo.
echo Starting servers...
echo.
REM Ensure dependencies are installed before launching
if not exist "node_modules\" (
echo Installing npm dependencies...
call npm install
if errorlevel 1 (
echo Failed to install dependencies. Please check the logs above.
pause
exit /b 1
)
) else (
echo Dependencies already installed.
)
REM Kill any existing Node processes to avoid port conflicts
taskkill /F /IM node.exe > nul 2>&1
REM Wait a moment
timeout /t 1 /nobreak > nul
REM Start both backend and frontend servers using npm start
start "Prompt Management Tool Servers" cmd /c "npm start"
REM Wait for servers to start
echo Waiting for servers to start...
timeout /t 8 /nobreak > nul
REM Open browser
echo Opening browser...
start http://localhost:5173
echo.
echo ========================================
echo Servers are running:
echo - Backend: http://localhost:3001
echo - Frontend: http://localhost:5173
echo ========================================
echo.
echo To stop the servers, close the
echo "Prompt Management Tool Servers" window.
echo.
echo Press any key to close this launcher...
pause > nul