Phishing-Detection-System / start_server.bat
rb1337's picture
Upload 50 files
2cc7f91 verified
Raw History Blame Contribute Delete
1.04 kB
@echo off
REM Phishing Detection Server Startup Script
REM Starts the FastAPI server for phishing detection
echo ============================================
echo Phishing Detection Server
echo ============================================
echo.
REM Check if virtual environment exists
if not exist "venv\" (
echo ERROR: Virtual environment not found!
echo Please run: python -m venv venv
pause
exit /b 1
)
REM Activate virtual environment
echo [1/3] Activating virtual environment...
call venv\Scripts\activate.bat
REM Install server dependencies if needed
echo [2/3] Checking dependencies...
pip install -q -r requirements.txt
REM 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