CareerBot/start.bat
ln0422 96997daed0 Initial commit: CareerBot full-stack career showcase with AI chatbot
- FastAPI backend with SQLAlchemy ORM and SQLite
- AI chatbot with OpenAI-compatible LLM integration (SSE streaming)
- Admin panel for content management, LLM config, token management
- Anonymous access with 3-question limit, token-based access control
- Recruiter intent detection with admin notification
- Resume generator (JD-based, Markdown to Word export)
- Chinese localized public interface

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 20:36:38 +08:00

41 lines
986 B
Batchfile

@echo off
chcp 65001 >nul 2>&1
title CareerBot Server
cd /d "%~dp0"
echo ============================================
echo CareerBot - Starting Server
echo ============================================
echo.
:: Check if port 8000 is already in use
netstat -ano | findstr ":8000.*LISTENING" >nul 2>&1
if %errorlevel%==0 (
echo [!] Port 8000 is already in use. Run stop.bat first.
echo.
pause
exit /b 1
)
:: Check if database exists, if not run init
if not exist "careerbot.db" (
echo [*] First run detected, initializing database...
python init_data.py
if %errorlevel% neq 0 (
echo [X] Database initialization failed!
pause
exit /b 1
)
echo [OK] Database initialized.
echo.
)
:: Start uvicorn
echo [*] Starting CareerBot on http://localhost:8000
echo [*] Admin panel: http://localhost:8000/admin/login
echo [*] Press Ctrl+C to stop the server
echo.
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload