Spaces:
Running
Running
File size: 1,035 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 35 36 37 38 39 40 41 42 43 44 45 46 47 |
#!/bin/bash
# Quick Start Script for Data Science Agent
echo "π Data Science Agent - Quick Start"
echo "==================================="
echo ""
# Check if frontend is built
if [ ! -d "FRRONTEEEND/dist" ]; then
echo "π¦ Frontend not built. Building now..."
echo ""
cd FRRONTEEEND
echo "Installing frontend dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "β Failed to install frontend dependencies!"
exit 1
fi
echo "Building frontend..."
npm run build
if [ $? -ne 0 ]; then
echo "β Failed to build frontend!"
exit 1
fi
cd ..
echo ""
echo "β
Frontend built successfully!"
else
echo "β
Frontend already built"
fi
echo ""
echo "π Starting Python backend..."
echo ""
echo "Make sure you have set the following environment variables:"
echo " - GOOGLE_API_KEY (required for Gemini)"
echo ""
echo "Starting server at http://localhost:8080"
echo "Press Ctrl+C to stop"
echo ""
python src/api/app.py
|