Spaces:
Running
Running
Pulastya B
feat: Initial commit - Data Science Agent with React frontend and FastAPI backend
226ac39
| # 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 | |