theo-agent-dashboard

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

build.sh (650B)


      1 #!/usr/bin/env bash
      2 set -euo pipefail
      3 
      4 cd "$(dirname "$0")"
      5 
      6 echo "=== Building Theo Agent Dashboard ==="
      7 
      8 # Backend
      9 echo "Installing backend dependencies..."
     10 cd backend
     11 .venv/bin/pip install -e ".[dev]" -q
     12 echo "Backend deps installed."
     13 
     14 # Frontend
     15 echo "Building frontend..."
     16 cd ../frontend
     17 npm ci --silent
     18 npm run build
     19 echo "Frontend built."
     20 
     21 # Copy static files to backend for serving
     22 echo "Copying frontend build to backend static..."
     23 mkdir -p ../backend/static
     24 cp -r dist/* ../backend/static/
     25 echo "Static files copied."
     26 
     27 echo "=== Build complete ==="
     28 echo "Start with: cd backend && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8080"