-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
60 lines (52 loc) · 1.54 KB
/
start.bat
File metadata and controls
60 lines (52 loc) · 1.54 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
@echo off
REM FineTuneLite Quick Start Script
REM Starts all services and opens the application
echo.
echo ========================================
echo FineTuneLite Quick Start
echo ========================================
echo.
REM Check if LM Studio is running
echo [1/4] Checking LM Studio...
curl -s http://127.0.0.1:1234/v1/models >nul 2>&1
if %errorlevel% neq 0 (
echo [WARNING] LM Studio is not running on port 1234
echo Please start LM Studio and load a model before continuing.
echo.
pause
exit /b 1
)
echo [OK] LM Studio is running
echo.
REM Start Backend
echo [2/4] Starting Backend Server...
cd backend
start "FineTuneLite Backend" cmd /k "python -m uvicorn main:app --reload --host 0.0.0.0 --port 8000"
echo [OK] Backend starting on http://localhost:8000
echo.
REM Wait for backend to start
timeout /t 3 /nobreak >nul
REM Start Frontend
echo [3/4] Starting Frontend Server...
cd ..\frontend
start "FineTuneLite Frontend" cmd /k "npm run dev"
echo [OK] Frontend starting on http://localhost:3000
echo.
REM Wait for frontend to start
echo [4/4] Waiting for services to initialize...
timeout /t 5 /nobreak >nul
REM Open browser
echo Opening FineTuneLite in your browser...
start http://localhost:3000
echo.
echo ========================================
echo FineTuneLite is now running!
echo ========================================
echo.
echo Frontend: http://localhost:3000
echo Backend: http://localhost:8000
echo API Docs: http://localhost:8000/docs
echo.
echo Press Ctrl+C in the terminal windows to stop the servers.
echo.
pause