This commit is contained in:
yml2213
2026-07-20 14:58:57 +08:00
commit 45db0aa4b9
50 changed files with 5861 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
.PHONY: start dev backend frontend install stop
# 一键启动前后端(推荐)
start dev:
@bash ./start.sh
backend:
cd backend && go run ./cmd/server
frontend:
cd frontend && npm run dev
install:
cd backend && go mod tidy
cd frontend && npm install
# 停止占用默认端口的进程
stop:
@-lsof -tiTCP:8080 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@-lsof -tiTCP:5173 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@echo "已尝试停止 8080 / 5173 端口服务"