19 lines
683 B
PowerShell
19 lines
683 B
PowerShell
# 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 start.ps1
|
|
|
|
$app = $PSScriptRoot
|
|
$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"
|