-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.ps1
More file actions
35 lines (30 loc) · 1.39 KB
/
Copy pathstart-dev.ps1
File metadata and controls
35 lines (30 loc) · 1.39 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
# start-dev.ps1 — VAD Development Launcher
# Starts RaySight-backend (:3001) and RaySight-frontend (:5173) in parallel windows.
# Usage: .\start-dev.ps1
# Plan reference: Phase 0, Task #10
$root = $PSScriptRoot
Write-Host "Starting VAD development servers..." -ForegroundColor Cyan
# Backend — Express :3001
Start-Process pwsh -ArgumentList "-NoExit", "-Command", "
`$Host.UI.RawUI.WindowTitle = 'VAD Backend :3001';
Set-Location '$root\RaySight-backend';
Write-Host 'Installing backend dependencies...' -ForegroundColor Yellow;
npm install --prefer-offline 2>&1 | Out-Null;
Write-Host 'Starting backend on http://localhost:3001' -ForegroundColor Green;
npm run dev
"
# Frontend — Vite :5173
Start-Process pwsh -ArgumentList "-NoExit", "-Command", "
`$Host.UI.RawUI.WindowTitle = 'VAD Frontend :5173';
Set-Location '$root\RaySight-frontend';
Write-Host 'Installing frontend dependencies...' -ForegroundColor Yellow;
npm install --prefer-offline 2>&1 | Out-Null;
Write-Host 'Starting frontend on http://localhost:5173' -ForegroundColor Green;
npm run dev
"
Write-Host ""
Write-Host "Two terminal windows opened:" -ForegroundColor Cyan
Write-Host " Backend → http://localhost:3001" -ForegroundColor White
Write-Host " Frontend → http://localhost:5173" -ForegroundColor White
Write-Host ""
Write-Host "Health check: curl http://localhost:3001/api/health" -ForegroundColor DarkGray