You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB

2 weeks ago
Write-Host "🚀 Starting GoFaster Full Stack Development Environment..." -ForegroundColor Cyan
Write-Host ""
Write-Host "Frontend: Electron + Vue.js with Hot Reload" -ForegroundColor Green
Write-Host "Backend: Go + Gin with Hot Reload" -ForegroundColor Green
Write-Host ""
Write-Host "Press Ctrl+C to stop all services" -ForegroundColor Yellow
Write-Host ""
# 启动后端热加载(后台运行)
Write-Host "Starting Backend with Hot Reload..." -ForegroundColor Green
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd backend; air" -WindowStyle Normal
# 等待2秒让后端启动
Start-Sleep -Seconds 2
# 启动前端热加载(后台运行)
Write-Host "Starting Frontend with Hot Reload..." -ForegroundColor Green
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd app; npm run dev" -WindowStyle Normal
Write-Host ""
Write-Host "✅ Both services started successfully!" -ForegroundColor Green
Write-Host "Frontend: http://localhost:3000 (Electron app)" -ForegroundColor Cyan
Write-Host "Backend: http://localhost:8080" -ForegroundColor Cyan
Write-Host "Swagger: http://localhost:8080/swagger/index.html" -ForegroundColor Cyan
Write-Host ""
Write-Host "💡 Code changes will automatically trigger rebuilds and reloads!" -ForegroundColor Yellow
Write-Host "Press any key to exit this launcher..."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")