#!/bin/bash # Start backend development server set -e cd "$(dirname "$0")/../../backend" echo "Starting backend server..." if [ ! -f ".env" ]; then echo "Creating .env from .env.example..." cp .env.example .env fi # Check if uv is installed if ! command -v uv &> /dev/null; then echo "Error: uv is not installed. Please install it first." echo "Visit: https://github.com/astral-sh/uv" exit 1 fi # Install dependencies if needed if [ ! -d ".venv" ]; then echo "Installing dependencies..." uv sync fi # Start the server echo "Starting uvicorn..." uv run uvicorn app.main:app --reload --host 0.0.0.0 --port 8000