Spaces:
Running
Running
Download scripts/dev.ps1 from neongeckocom/AskJerry: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/spaces/neongeckocom/AskJerry/resolve/8a55c982853a8564aaabb5897036e4241663dd21/scripts/dev.ps1
- Command line
-
hf download hf://spaces/neongeckocom/AskJerry@8a55c982853a8564aaabb5897036e4241663dd21/scripts/dev.ps1
-
curl -L -o dev.ps1 https://huggingface.co/spaces/neongeckocom/AskJerry/resolve/8a55c982853a8564aaabb5897036e4241663dd21/scripts/dev.ps1
546 Bytes
| # Run API (8006) and Vite (3006). Requires two terminals on Windows, or run in background jobs. | |
| $root = Split-Path -Parent $PSScriptRoot | |
| Write-Host "Starting Ask Jerry API on http://127.0.0.1:8006 ..." | |
| Start-Process pwsh -ArgumentList @( | |
| "-NoExit", "-Command", | |
| "Set-Location '$root\backend'; if (Test-Path .venv\Scripts\Activate.ps1) { .\.venv\Scripts\Activate.ps1 }; uvicorn app.main:app --host 127.0.0.1 --port 8006" | |
| ) | |
| Start-Sleep -Seconds 2 | |
| Write-Host "Starting Vite on http://localhost:3006 ..." | |
| Set-Location "$root\frontend" | |
| npm run dev | |