-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
70 lines (60 loc) · 1.36 KB
/
start.bat
File metadata and controls
70 lines (60 loc) · 1.36 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
@echo off
REM Smart Serve Project Startup Script for Windows
setlocal
echo Starting Smart Serve Project...
echo =================================
if "%1"=="frontend" (
call:start_frontend
goto:eof
)
if "%1"=="backend" (
call:start_backend
goto:eof
)
if "%1"=="llm" (
call:start_llm
goto:eof
)
if "%1"=="all" (
call:start_frontend
timeout /t 5 /nobreak >nul
call:start_backend
timeout /t 5 /nobreak >nul
call:start_llm
echo All services started!
echo Frontend: http://localhost:3000
echo Backend: http://localhost:8080
echo LLM Service: http://localhost:5000
goto:eof
)
echo Usage: %0 {frontend^|backend^|llm^|all}
echo frontend - Start only the frontend
echo backend - Start only the backend
echo llm - Start only the LLM service
echo all - Start all services
goto:eof
:start_frontend
echo Starting Frontend ^(Vue3^)...
cd frontend
start npm run dev
cd ..
goto:eof
:start_backend
set PROFILE=%SPRING_PROFILE%
if "%PROFILE%"=="" set PROFILE=dev
echo Starting Backend ^(Spring Boot^) with profile: %PROFILE%...
cd backend
start mvn spring-boot:run -Dspring-boot.run.profiles=%PROFILE%
cd ..
goto:eof
:start_llm
echo Starting LLM Service ^(Python^)...
cd llm
if not exist venv (
python -m venv venv
)
call venv\Scripts\activate.bat
pip install -r requirements.txt
start python api/app.py
cd ..
goto:eof