Spaces:
Sleeping
Sleeping
Download start-app.ps1 from shkumar156/Backend-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 919 Bytes
-
https://huggingface.co/spaces/shkumar156/Backend-Object-Detection/resolve/main/start-app.ps1
- Command line
-
hf download hf://spaces/shkumar156/Backend-Object-Detection/start-app.ps1
-
curl -L -o start-app.ps1 https://huggingface.co/spaces/shkumar156/Backend-Object-Detection/resolve/main/start-app.ps1
919 Bytes
| Write-Host "Starting Object Detection App..." -ForegroundColor Green | |
| Write-Host "" | |
| Write-Host "Starting Backend Server (Port 5000)..." -ForegroundColor Yellow | |
| Start-Process powershell -ArgumentList "-NoExit", "-Command", "npm start" -WindowStyle Normal | |
| Write-Host "Waiting 3 seconds for backend to start..." -ForegroundColor Cyan | |
| Start-Sleep -Seconds 3 | |
| Write-Host "Starting Frontend Server (Port 3000)..." -ForegroundColor Yellow | |
| Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd ../frontend; npm start" -WindowStyle Normal | |
| Write-Host "" | |
| Write-Host "Both servers are starting..." -ForegroundColor Green | |
| Write-Host "Backend: http://localhost:5000" -ForegroundColor Cyan | |
| Write-Host "Frontend: http://localhost:3000" -ForegroundColor Cyan | |
| Write-Host "" | |
| Write-Host "Press any key to close this window..." -ForegroundColor Yellow | |
| $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") |