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 | |
| set -e # Exit on error | |
| echo "π Building and Deploying Data Science Agent..." | |
| # Step 1: Build React Frontend | |
| echo "" | |
| echo "π¦ Building React frontend..." | |
| cd FRRONTEEEND | |
| npm.cmd install | |
| npm.cmd run build | |
| cd .. | |
| # Step 2: Copy built frontend to deployment location (if needed) | |
| echo "" | |
| echo "β Frontend built successfully!" | |
| echo " Built files are in: FRRONTEEEND/dist" | |
| # Step 3: Install Python dependencies | |
| echo "" | |
| echo "π¦ Installing Python dependencies..." | |
| pip install -r requirements.txt | |
| echo "" | |
| echo "β Build complete!" | |
| echo "" | |
| echo "To run the application:" | |
| echo " 1. Backend: python -m uvicorn src.api.app:app --host 0.0.0.0 --port 8080" | |
| echo " 2. Or use: python src/api/app.py" | |
| echo "" | |
| echo "Access the app at: http://localhost:8080" | |