Spaces:
Sleeping
Sleeping
File size: 2,091 Bytes
f871fed |
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 |
# Open Notebook - Development Mode Startup Script
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " Starting Open Notebook (Dev Mode)" -ForegroundColor Cyan
Write-Host "========================================`n" -ForegroundColor Cyan
# Check SurrealDB
Write-Host "Checking SurrealDB..." -ForegroundColor Yellow
$surrealRunning = docker ps --filter "name=surrealdb" --filter "status=running" -q
if (-not $surrealRunning) {
Write-Host "Starting SurrealDB..." -ForegroundColor Yellow
docker-compose -f docker-compose.dev.yml up -d surrealdb
Start-Sleep -Seconds 3
}
Write-Host "β SurrealDB is running" -ForegroundColor Green
# Start Backend API in new window
Write-Host "`nStarting Backend API..." -ForegroundColor Yellow
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PSScriptRoot'; Write-Host 'Backend API Server' -ForegroundColor Green; python run_api.py"
Start-Sleep -Seconds 5
# Start Frontend in new window
Write-Host "Starting Frontend..." -ForegroundColor Yellow
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PSScriptRoot\frontend'; Write-Host 'Frontend Development Server' -ForegroundColor Cyan; npm run dev"
Start-Sleep -Seconds 10
Write-Host "`n========================================" -ForegroundColor Green
Write-Host " β
Services Started!" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host "`nπ Access your application at:" -ForegroundColor Yellow
Write-Host " http://localhost:3000`n" -ForegroundColor White -BackgroundColor DarkGreen
Write-Host "Features:" -ForegroundColor Yellow
Write-Host " πΈοΈ Knowledge Graph Visualization" -ForegroundColor Cyan
Write-Host " π Ask and Learn" -ForegroundColor Cyan
Write-Host " ποΈ Multi-speaker Podcasts" -ForegroundColor Cyan
Write-Host " π Advanced Search & Chat" -ForegroundColor Cyan
Write-Host "`nTwo new windows have been opened for Backend and Frontend."
Write-Host "Keep them running while using the application.`n" -ForegroundColor Gray
|