Data-Science-Agent / start.sh
Pulastya B
feat: Initial commit - Data Science Agent with React frontend and FastAPI backend
226ac39
#!/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