Data-Science-Agent / build-and-deploy.sh
Pulastya B
feat: Initial commit - Data Science Agent with React frontend and FastAPI backend
226ac39
raw
history blame contribute delete
819 Bytes
#!/bin/bash
# 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"