-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
76 lines (65 loc) · 1.68 KB
/
start.bat
File metadata and controls
76 lines (65 loc) · 1.68 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
72
73
74
75
76
@echo off
REM ACE-Step UI Startup Script for Windows
setlocal
echo ==================================
echo ACE-Step UI (Windows)
echo ==================================
echo.
REM Check if node_modules exists
if not exist "node_modules" (
echo Error: Dependencies not installed!
echo Please run setup.bat first.
pause
exit /b 1
)
if not exist "server\node_modules" (
echo Error: Server dependencies not installed!
echo Please run setup.bat first.
pause
exit /b 1
)
REM Get local IP for LAN access
for /f "tokens=2 delims=:" %%a in ('ipconfig ^| findstr /c:"IPv4"') do (
for /f "tokens=1" %%b in ("%%a") do (
set LOCAL_IP=%%b
)
)
echo Starting ACE-Step UI...
echo.
echo Make sure ACE-Step API is running:
echo cd path\to\ACE-Step
echo uv run acestep-api --port 8001
echo.
echo ==================================
echo.
REM Start backend in new window
echo Starting backend server...
start "ACE-Step UI Backend" cmd /k "cd server && npm run dev"
REM Wait for backend to start
echo Waiting for backend to start...
timeout /t 3 /nobreak >nul
REM Start frontend in new window
echo Starting frontend...
start "ACE-Step UI Frontend" cmd /k "npm run dev"
REM Wait a moment
timeout /t 2 /nobreak >nul
echo.
echo ==================================
echo ACE-Step UI Running!
echo ==================================
echo.
echo Frontend: http://localhost:3000
echo Backend: http://localhost:3001
echo.
if defined LOCAL_IP (
echo LAN Access: http://%LOCAL_IP%:3000
echo.
)
echo Close the terminal windows to stop.
echo.
echo ==================================
echo.
echo Opening browser...
timeout /t 2 /nobreak >nul
start http://localhost:3000
pause