Files
mengyanote/启动后端.bat
2025-12-19 15:51:26 +08:00

31 lines
566 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
chcp 65001 >nul
echo ================================
echo 萌芽笔记 - 后端API服务器
echo ================================
echo.
cd mengyanote-backend
echo [1/2] 检查Python环境...
python --version >nul 2>&1
if errorlevel 1 (
echo 错误未找到Python请先安装Python 3.8+
pause
exit /b 1
)
echo Python环境已就绪
echo.
echo [2/2] 启动后端服务器...
echo.
echo 后端将在 http://localhost:8000 运行
echo API文档: http://localhost:8000/docs
echo 按 Ctrl+C 停止服务器
echo.
python main.py
pause