Spaces:
Running
Running
Pulastya B
feat: Initial commit - Data Science Agent with React frontend and FastAPI backend
226ac39
| # Build and Deploy Script for Data Science Agent (Windows) | |
| Write-Host "π Building and Deploying Data Science Agent..." -ForegroundColor Cyan | |
| # Step 1: Build React Frontend | |
| Write-Host "" | |
| Write-Host "π¦ Building React frontend..." -ForegroundColor Yellow | |
| Set-Location FRRONTEEEND | |
| npm.cmd install | |
| if ($LASTEXITCODE -ne 0) { | |
| Write-Host "β Frontend npm install failed!" -ForegroundColor Red | |
| exit 1 | |
| } | |
| npm.cmd run build | |
| if ($LASTEXITCODE -ne 0) { | |
| Write-Host "β Frontend build failed!" -ForegroundColor Red | |
| exit 1 | |
| } | |
| Set-Location .. | |
| Write-Host "" | |
| Write-Host "β Frontend built successfully!" -ForegroundColor Green | |
| Write-Host " Built files are in: FRRONTEEEND\dist" -ForegroundColor Gray | |
| # Step 2: Install Python dependencies | |
| Write-Host "" | |
| Write-Host "π¦ Installing Python dependencies..." -ForegroundColor Yellow | |
| pip install -r requirements.txt | |
| if ($LASTEXITCODE -ne 0) { | |
| Write-Host "β οΈ Some Python dependencies may have failed to install" -ForegroundColor Yellow | |
| } | |
| Write-Host "" | |
| Write-Host "β Build complete!" -ForegroundColor Green | |
| Write-Host "" | |
| Write-Host "To run the application:" -ForegroundColor Cyan | |
| Write-Host " python src\api\app.py" -ForegroundColor White | |
| Write-Host "" | |
| Write-Host "Access the app at: http://localhost:8080" -ForegroundColor Green | |