RICS / backend /scripts /start_server.ps1
StormShadow308's picture
Add demo documentation and Docker setup for v2 report generation system
aad7814
Raw
History Blame Contribute Delete
621 Bytes
# Start the v2 RICS backend for local testing.
# Run from repo root: .\backend\scripts\start_server.ps1
$ErrorActionPreference = "Stop"
$RepoRoot = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
Set-Location $RepoRoot
$DataDir = Join-Path $RepoRoot ".rics_v2_data"
New-Item -ItemType Directory -Force -Path (Join-Path $DataDir "tmp") | Out-Null
$env:DATA_DIR = $DataDir
$env:MASTER_TEMPLATE_AUTO_INGEST = "false"
$env:REFERENCE_AUTO_INGEST_ENABLED = "false"
Write-Host "DATA_DIR=$($env:DATA_DIR)"
Write-Host "Starting http://127.0.0.1:8000 ..."
python -m uvicorn backend.main:app --host 127.0.0.1 --port 8000