#!/bin/bash # Phishing Detection Server Startup Script (Linux/Mac) echo "============================================" echo " Phishing Detection Server" echo "============================================" echo "" # Check if virtual environment exists if [ ! -d "venv" ]; then echo "ERROR: Virtual environment not found!" echo "Please run: python -m venv venv" exit 1 fi # Activate virtual environment echo "[1/3] Activating virtual environment..." source venv/bin/activate # Install server dependencies if needed echo "[2/3] Checking dependencies..." pip install -q -r server/requirements.txt # Start the server echo "[3/3] Starting server..." echo "" echo "============================================" echo " Server running at: http://localhost:8000" echo " API Docs: http://localhost:8000/docs" echo " Press Ctrl+C to stop" echo "============================================" echo "" cd server python -m uvicorn app:app --host 0.0.0.0 --port 8000 --reload