-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
73 lines (64 loc) · 1.77 KB
/
Copy pathstart.bat
File metadata and controls
73 lines (64 loc) · 1.77 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
echo.
echo 🧠 RAG Admin Panel - Quick Start
echo ================================
REM Check if Docker is running
docker info >nul 2>&1
if errorlevel 1 (
echo ❌ Docker is not running. Please start Docker first.
pause
exit /b 1
)
REM Start infrastructure
echo 🐳 Starting infrastructure (PostgreSQL, Neo4j, Ollama)...
docker-compose up -d
REM Wait for services to be ready
echo ⏳ Waiting for services to start...
timeout /t 10 /nobreak >nul
REM Check if PostgreSQL is ready
echo 🔍 Checking PostgreSQL...
:wait_postgres
docker exec ragdb_postgres pg_isready -U postgres >nul 2>&1
if errorlevel 1 (
echo Waiting for PostgreSQL...
timeout /t 2 /nobreak >nul
goto wait_postgres
)
echo ✅ PostgreSQL ready
REM Check if Neo4j is ready
echo 🔍 Checking Neo4j...
:wait_neo4j
docker exec ragdb_neo4j cypher-shell -u neo4j -p password "RETURN 1" >nul 2>&1
if errorlevel 1 (
echo Waiting for Neo4j...
timeout /t 2 /nobreak >nul
goto wait_neo4j
)
echo ✅ Neo4j ready
REM Install Ollama models (in background)
echo 📥 Installing Ollama models (this may take a few minutes)...
start /b docker exec ragdb_ollama ollama pull all-minilm
start /b docker exec ragdb_ollama ollama pull nomic-embed-text
REM Build and run the application
echo 🔨 Building .NET application...
cd src\RAGAdminPanel
dotnet restore
if errorlevel 1 (
echo ❌ Failed to restore packages
pause
exit /b 1
)
echo.
echo 🚀 Starting RAG Admin Panel...
echo.
echo 🌐 Application will be available at:
echo https://localhost:7001
echo.
echo 📊 Services:
echo PostgreSQL: localhost:5432 (postgres/postgres)
echo Neo4j: localhost:7474 (neo4j/password)
echo Ollama: localhost:11434
echo.
echo Press Ctrl+C to stop the application
echo.
dotnet run