# Launch the A/R Aging app on Windows. # Ports 8010/5174 because the defaults (8000/5173) are used by the ATS project. # Run with: powershell -ExecutionPolicy Bypass -File scripts\start.ps1 (or double-click start.bat) $app = Split-Path $PSScriptRoot -Parent # scripts/ lives inside ar-aging-app/ $python = "$env:LOCALAPPDATA\anaconda3\envs\Talha\python.exe" Start-Process powershell -ArgumentList @( "-NoExit", "-Command", "cd '$app\backend'; & '$python' -m uvicorn app.api.main:app --host 127.0.0.1 --port 8010 --reload" ) Start-Process powershell -ArgumentList @( "-NoExit", "-Command", "cd '$app\frontend'; `$env:VITE_API_PROXY = 'http://localhost:8010'; npx vite --port 5174 --strictPort" ) Start-Sleep -Seconds 4 Start-Process "http://localhost:5174"