-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-fullstack.bat
More file actions
59 lines (47 loc) · 1.6 KB
/
Copy pathrun-fullstack.bat
File metadata and controls
59 lines (47 loc) · 1.6 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
@echo off
REM TaskMagnet Full Stack Runner Script (Windows Batch)
REM This script starts both backend and frontend servers
echo 🧲 TaskMagnet Full Stack Runner
echo ===============================
REM Get script directory
set SCRIPT_DIR=%~dp0
set BACKEND_DIR=%SCRIPT_DIR%src\backend
set FRONTEND_DIR=%SCRIPT_DIR%src\frontend\taskmagnet-frontend
REM Check if directories exist
if not exist "%BACKEND_DIR%" (
echo ❌ Error: Backend directory not found at %BACKEND_DIR%
pause
exit /b 1
)
if not exist "%FRONTEND_DIR%" (
echo ❌ Error: Frontend directory not found at %FRONTEND_DIR%
pause
exit /b 1
)
echo.
echo 🔧 Starting TaskMagnet Full Stack Application
echo - Backend will start on: http://localhost:8081
echo - Frontend will start on: http://localhost:3000
echo.
echo ⚡ Starting backend server...
REM Start backend in a new command prompt window
start "TaskMagnet Backend" cmd /c "%SCRIPT_DIR%run-app.bat"
REM Wait a moment for backend to start
timeout /t 3 /nobreak >nul
echo ⚡ Starting frontend server...
REM Start frontend in a new command prompt window
start "TaskMagnet Frontend" cmd /c "%SCRIPT_DIR%run-frontend.bat"
echo.
echo ✅ Both servers are starting up!
echo.
echo 🌐 Application URLs:
echo Frontend: http://localhost:3000
echo Backend API: http://localhost:8081
echo Backend Health: http://localhost:8081/actuator/health
echo.
echo 💡 Both servers are running in separate windows.
echo Close those windows to stop the servers.
echo.
echo 📊 Full Stack Status Monitor
echo Press any key to exit this monitor (servers will continue running)...
pause >nul