-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_all.bat
More file actions
68 lines (52 loc) · 1.82 KB
/
Copy pathrun_all.bat
File metadata and controls
68 lines (52 loc) · 1.82 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
@echo off
echo Starting Intelligent Innovation Copilot...
REM =========================
REM 1. Setup Python venv
REM =========================
if not exist .venv (
echo Creating virtual environment...
python -m venv .venv
)
call .venv\Scripts\activate
echo Installing backend dependencies...
pip install --upgrade pip
pip install -r backend\requirements.txt
pip install aiosqlite beautifulsoup4 cachetools psycopg[binary]
REM =========================
REM 2. Set environment vars
REM =========================
set PATENT_SOURCE=lens
set PATENT_SOURCE_FALLBACK=none
set LENS_API_TOKEN=YOUR_LENS_API_KEY
set LENS_API_URL=https://api.lens.org/patent/search
set DATABASE_URL=sqlite+aiosqlite:///./test.db
set MCP_RETRIEVAL_URL=http://127.0.0.1:8101
set MCP_EVIDENCE_URL=http://127.0.0.1:8103
set MCP_NOVELTY_URL=http://127.0.0.1:8104
set MCP_REPORT_URL=http://127.0.0.1:8106
set NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:9000/api/v1
REM =========================
REM 3. Start backend services
REM =========================
echo Starting MCP services...
start cmd /k "uvicorn backend.mcp_servers.retrieval.server:app --port 8101"
start cmd /k "uvicorn backend.mcp_servers.evidence.server:app --port 8103"
start cmd /k "uvicorn backend.mcp_servers.novelty.server:app --port 8104"
start cmd /k "uvicorn backend.mcp_servers.report.server:app --port 8106"
timeout /t 5
echo Starting main backend...
start cmd /k "uvicorn backend.app.main:app --port 9000"
REM =========================
REM 4. Start frontend
REM =========================
echo Installing frontend dependencies...
cd frontend
call npm install
echo Starting frontend...
start cmd /k "npx next dev -H 127.0.0.1 -p 5006"
cd ..
echo ====================================
echo App is starting...
echo Open: http://127.0.0.1:5006/idea-input
echo ====================================
pause