docs: 项目文档、设计图、工具、协议模块、部署说明

This commit is contained in:
Qiufeng
2026-08-20 20:38:21 +08:00
commit bf25d8beac
46 changed files with 2965 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
.PHONY: run build test tidy infra-up infra-down health
run: ## 本地运行服务
cd server && go run .
build: ## 编译二进制
cd server && go build -o ../dist/everypublish-server .
test: ## 单测
cd server && go test ./...
tidy: ## 整理依赖
cd server && go mod tidy
infra-up: ## 启动 MySQL/Redis(Docker)
docker compose -f server/docker-compose.yml up -d
infra-down: ## 停止 MySQL/Redis
docker compose -f server/docker-compose.yml down
health: ## 健康检查
curl -s http://127.0.0.1:8090/health