-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART.ps1
More file actions
32 lines (24 loc) · 1.31 KB
/
START.ps1
File metadata and controls
32 lines (24 loc) · 1.31 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
# HR Management System - Quick Start
Write-Host "🚀 Starting HR Management System..." -ForegroundColor Green
# Kill existing processes
Get-Process | Where-Object {$_.ProcessName -match "java|node"} | Stop-Process -Force -ErrorAction SilentlyContinue
Write-Host "🔧 Starting servers..." -ForegroundColor Blue
# Start backend in new window
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PWD\server'; Write-Host 'Starting Spring Boot...'; .\mvnw.cmd spring-boot:run"
# Wait a bit
Start-Sleep -Seconds 5
# Start frontend in new window
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PWD\client'; Write-Host 'Starting Angular...'; npm start"
Write-Host "✅ Both servers starting in separate windows" -ForegroundColor Green
Write-Host "⏳ Please wait 60-90 seconds for both to be ready" -ForegroundColor Yellow
Write-Host ""
Write-Host "📱 URLs will be:" -ForegroundColor Cyan
Write-Host " Frontend: http://localhost:4200" -ForegroundColor White
Write-Host " Backend: http://localhost:8080" -ForegroundColor White
Write-Host ""
Write-Host "Press Enter to open browser windows..." -ForegroundColor Yellow
Read-Host
# Open browser windows
Start-Process "http://localhost:4200"
Start-Process "http://localhost:8080/api/departments"
Write-Host "🎉 Demo ready!" -ForegroundColor Green