-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
36 lines (30 loc) · 1.02 KB
/
Copy pathstart.bat
File metadata and controls
36 lines (30 loc) · 1.02 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
@echo off
echo ========================================
echo Starting SQL Dialect Converter
echo ========================================
echo.
REM Start backend in a new window
echo Starting Backend Server...
start "SQL Converter - Backend" cmd /k "cd backend && venv\Scripts\uvicorn.exe main:app --host 0.0.0.0 --port 8000 --reload"
REM Wait a bit for backend to start
timeout /t 3 /nobreak >nul
REM Start frontend in a new window
echo Starting Frontend Server...
start "SQL Converter - Frontend" cmd /k "cd frontend && npm run dev"
echo.
echo ========================================
echo Servers Starting...
echo ========================================
echo.
echo Backend: http://localhost:8000
echo Frontend: http://localhost:3000
echo API Docs: http://localhost:8000/docs
echo.
echo Press any key to stop all servers...
pause >nul
REM Kill the processes
taskkill /FI "WindowTitle eq SQL Converter - Backend*" /T /F >nul 2>&1
taskkill /FI "WindowTitle eq SQL Converter - Frontend*" /T /F >nul 2>&1
echo.
echo Servers stopped.
pause