-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
53 lines (45 loc) · 1.23 KB
/
Copy pathstart.bat
File metadata and controls
53 lines (45 loc) · 1.23 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
@echo off
echo ========================================
echo NAVTEX Recovery Service Starting
echo ========================================
echo.
REM Check if Python is available
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python is not installed or not in PATH
pause
exit /b 1
)
REM Check if Node.js is available
node --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Node.js is not installed or not in PATH
pause
exit /b 1
)
echo [1/4] Starting Backend Server...
cd backend
start "NAVTEX Backend" cmd /k "python -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"
cd ..
echo [2/4] Waiting for backend to initialize...
timeout /t 3 /nobreak >nul
echo [3/4] Starting Frontend Development Server...
cd frontend
start "NAVTEX Frontend" cmd /k "npm run dev"
cd ..
echo [4/4] All services started!
echo.
echo ========================================
echo Services Running:
echo - Backend: http://localhost:8000
echo - Frontend: http://localhost:80
echo - API Docs: http://localhost:8000/docs
echo ========================================
echo.
echo Press any key to open browser...
pause >nul
start http://localhost:80
echo.
echo To stop services, close the backend and frontend windows.
echo.
pause