mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:29:27 +08:00
docs:update readme
This commit is contained in:
24
scripts/start_backend.bat
Normal file
24
scripts/start_backend.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
REM DeepTutor Backend Startup Script
|
||||
REM Activates virtual environment and starts the backend API server
|
||||
|
||||
REM Move to the project root (this script lives in scripts/)
|
||||
cd /d "%~dp0.."
|
||||
|
||||
REM Set UTF-8 encoding for stdout to support emoji characters
|
||||
set PYTHONIOENCODING=utf-8
|
||||
set PYTHONUTF8=1
|
||||
|
||||
echo Activating Python virtual environment...
|
||||
call .venv\Scripts\activate.bat
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Failed to activate virtual environment. Make sure .venv exists.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Starting DeepTutor Backend Server...
|
||||
echo Backend will be available at: http://localhost:8001
|
||||
echo Press Ctrl+C to stop the server.
|
||||
python -m deeptutor.api.run_server
|
||||
pause
|
||||
12
scripts/start_frontend.bat
Normal file
12
scripts/start_frontend.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
REM DeepTutor Frontend Startup Script
|
||||
REM Starts the frontend Next.js development server
|
||||
|
||||
REM Move to the project root (this script lives in scripts/)
|
||||
cd /d "%~dp0.."
|
||||
echo Starting DeepTutor Frontend...
|
||||
echo Frontend will be available at: http://localhost:3782
|
||||
echo Press Ctrl+C to stop the server.
|
||||
cd web
|
||||
npm run dev -- -p 3782
|
||||
pause
|
||||
Reference in New Issue
Block a user