File size: 819 Bytes
226ac39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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"