0c4380c3c343a3ec1b8558b8519e6559dc8b7ba6
萌芽账户认证中心(SproutGate)
前后端分离的统一账户认证中心:
- 前端:React(
sproutgate-frontend) - 后端:Golang + Gin(
sproutgate-backend) - 数据:
data/与子目录 JSON 文件存储
快速启动
后端
cd sproutgate-backend
go mod tidy
go run .
默认端口 8080,默认管理员 Token:shumengya520(位于 sproutgate-backend/data/config/admin.json)。
邮件发送配置位于 sproutgate-backend/data/config/email.json。
前端
cd sproutgate-frontend
npm install
npm run dev
如需自定义后端地址,新增 sproutgate-frontend/.env:
VITE_API_BASE=http://localhost:8080
管理员地址
http://localhost:5173/admin?token=shumengya520
API 文档
- 文件:
sproutgate-backend/API_DOCS.md - 在线:
GET /api/docs
Description
Languages
JavaScript
47%
Go
36.7%
CSS
15%
Shell
0.4%
HTML
0.4%
Other
0.5%