-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
33 lines (29 loc) · 854 Bytes
/
start-dev.bat
File metadata and controls
33 lines (29 loc) · 854 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
@echo off
echo Starting Burger App - Full Stack Development
echo.
echo [1/3] Checking if MongoDB is running...
tasklist /FI "IMAGENAME eq mongod.exe" 2>NUL | find /I /N "mongod.exe">NUL
if "%ERRORLEVEL%"=="0" (
echo ✓ MongoDB is already running
) else (
echo ⚠ MongoDB is not running. Please start MongoDB first.
echo You can start MongoDB with: mongod
pause
exit /b 1
)
echo.
echo [2/3] Starting Backend Server...
cd /d "%~dp0BackEnd"
start "Backend Server" cmd /k "npm run dev"
echo.
echo [3/3] Starting Frontend Development Server...
cd /d "%~dp0FrontEnd"
start "Frontend Server" cmd /k "npm start"
echo.
echo ✓ Both servers are starting...
echo ✓ Backend: http://localhost:5000
echo ✓ Frontend: http://localhost:3000
echo ✓ Health Check: http://localhost:5000/health
echo.
echo Press any key to exit...
pause >nul