| .PHONY: install-deps start start-backend start-frontend clean-logs | |
| install-deps: install-backend-deps install-frontend-deps | |
| @echo "所有依赖已安装完毕." | |
| install-backend-deps: | |
| @echo "安装后端 Python 依赖..." | |
| @cd backend && pip install -r requirements.txt | |
| install-frontend-deps: | |
| @echo "安装前端 Node.js 依赖..." | |
| @cd qsss-web && pnpm install | |
| start: | |
| @echo "启动所有服务..." | |
| @echo "请按顺序执行以下操作:" | |
| @echo "1. 在一个终端运行: make start-backend" | |
| @echo "2. 在另一个终端运行: make start-frontend" | |
| start-backend: | |
| @echo "启动后端服务 (前台)...访问 http://localhost:8000" | |
| @cd backend && uvicorn app.main_memory:app --host 0.0.0.0 --port 8000 | |
| start-frontend: | |
| @echo "启动前端服务 (前台)...访问 http://localhost:3000" | |
| @cd qsss-web && npm run dev | |
| clean-logs: | |
| @echo "清理日志文件..." | |
| @rm -f backend/backend_service.log | |
| @rm -f frontend/frontend_service.log | |
| @echo "日志文件已清理." |