#!/bin/bash

# Verofy HLD QC Tool - Server Startup Script

echo "Starting Verofy HLD QC Backend Server..."
echo "========================================"

cd backend

# Check if virtual environment exists
if [ ! -d ".venv" ]; then
    echo "Error: Virtual environment not found!"
    echo "Please run: cd backend && uv venv && uv pip install -r requirements.txt"
    exit 1
fi

# Activate virtual environment and start server
source .venv/bin/activate
python main.py
