forked from fspecii/ace-step-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
73 lines (65 loc) · 1.5 KB
/
setup.bat
File metadata and controls
73 lines (65 loc) · 1.5 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
@echo off
REM ACE-Step UI Setup Script for Windows
setlocal enabledelayedexpansion
echo ==================================
echo ACE-Step UI Setup (Windows)
echo ==================================
echo.
REM Check Node.js
where node >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Error: Node.js not found!
echo Please install Node.js 18+ from https://nodejs.org/
pause
exit /b 1
)
REM Show Node version
for /f "tokens=*" %%i in ('node --version') do echo Node.js version: %%i
REM Install frontend dependencies
echo.
echo Installing frontend dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo Error: Failed to install frontend dependencies
pause
exit /b 1
)
REM Install server dependencies
echo.
echo Installing server dependencies...
cd server
call npm install
if %ERRORLEVEL% NEQ 0 (
echo Error: Failed to install server dependencies
cd ..
pause
exit /b 1
)
cd ..
REM Create server .env if it doesn't exist
if not exist "server\.env" (
echo.
echo Creating server\.env from example...
copy server\.env.example server\.env
)
REM Create data directory
if not exist "server\data" (
mkdir server\data
)
echo.
echo ==================================
echo Setup Complete!
echo ==================================
echo.
echo Next steps:
echo.
echo 1. Start ACE-Step API (in ACE-Step folder):
echo cd path\to\ACE-Step
echo uv run acestep-api --port 8001
echo.
echo 2. Start ACE-Step UI:
echo start.bat
echo.
echo 3. Open http://localhost:3000
echo.
pause