-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_servers.ps1
More file actions
34 lines (27 loc) · 1.23 KB
/
Copy pathstart_servers.ps1
File metadata and controls
34 lines (27 loc) · 1.23 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
# DAILYAGI Server Startup Script
# Run this script to start both backend and frontend
Write-Host "🚀 Starting DAILYAGI Servers..." -ForegroundColor Cyan
Write-Host ""
# Check if .env exists
if (-not (Test-Path ".env")) {
Write-Host "⚠️ .env file not found!" -ForegroundColor Yellow
Write-Host " Run: python setup_env_auto.py" -ForegroundColor Yellow
exit 1
}
# Start Backend
Write-Host "🔧 Starting Backend (Port 8000)..." -ForegroundColor Green
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PWD\backend'; python main.py" -WindowStyle Normal
# Wait a bit
Start-Sleep -Seconds 3
# Start Frontend
Write-Host "🎨 Starting Frontend (Port 3000)..." -ForegroundColor Green
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PWD'; npm run dev" -WindowStyle Normal
Write-Host ""
Write-Host "✅ Servers starting in separate windows!" -ForegroundColor Green
Write-Host ""
Write-Host "📊 Backend: http://localhost:8000" -ForegroundColor Cyan
Write-Host "🌐 Frontend: http://localhost:3000" -ForegroundColor Cyan
Write-Host ""
Write-Host "⏳ Wait 10-15 seconds for servers to start, then open:" -ForegroundColor Yellow
Write-Host " http://localhost:3000" -ForegroundColor White
Write-Host ""