-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART_APP.bat
More file actions
71 lines (61 loc) · 1.87 KB
/
Copy pathSTART_APP.bat
File metadata and controls
71 lines (61 loc) · 1.87 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
60
61
62
63
64
65
66
67
68
69
70
71
@echo off
REM Start Sign Language Translator - Both Backend and Frontend
REM This script opens the backend and frontend servers in separate windows
echo ============================================
echo Sign Language Translator - Quick Start
echo ============================================
echo.
REM Check if we're in the right directory
if not exist "backend" (
echo Error: backend folder not found!
echo Make sure you run this from: D:\sign-language-translator
pause
exit /b 1
)
if not exist "frontend" (
echo Error: frontend folder not found!
echo Make sure you run this from: D:\sign-language-translator
pause
exit /b 1
)
REM Start Backend Server
echo.
echo [1/2] Starting Backend Server...
echo Location: http://localhost:8000
echo Command: python backend/run.py
echo.
start "Sign Language Translator - Backend" cmd /k "cd backend && python run.py"
REM Wait a bit for backend to start
echo Waiting for backend to start (5 seconds)...
timeout /t 5 /nobreak
REM Start Frontend Server
echo.
echo [2/2] Starting Frontend Server...
echo Location: http://localhost:3000
echo Command: npm start
echo.
start "Sign Language Translator - Frontend" cmd /k "cd frontend && npm start"
REM Open browser
echo.
echo Waiting for frontend to start (10 seconds)...
timeout /t 10 /nobreak
echo.
echo ============================================
echo All servers started!
echo ============================================
echo.
echo Frontend URL: http://localhost:3000
echo Backend health: http://localhost:8000/health
echo.
echo Press any key to open the app in your browser...
pause
REM Open the app in default browser
start http://localhost:3000
echo.
echo All done! The app should open in your browser.
echo.
echo Backend & Frontend windows are open. Keep them running while using the app.
echo.
echo Press Ctrl+C in each window to stop the servers when done.
echo.
pause