Data-Science-Agent / build-and-deploy.ps1
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