Files
SproutGate/README.md
2026-03-18 22:06:43 +08:00

41 lines
857 B
Markdown
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.
# 萌芽账户认证中心SproutGate
前后端分离的统一账户认证中心:
- 前端React`sproutgate-frontend`
- 后端Golang + Gin`sproutgate-backend`
- 数据:`data/` 与子目录 JSON 文件存储
## 快速启动
### 后端
```bash
cd sproutgate-backend
go mod tidy
go run .
```
默认端口 `8080`,默认管理员 Token`shumengya520`(位于 `sproutgate-backend/data/config/admin.json`)。
邮件发送配置位于 `sproutgate-backend/data/config/email.json`
### 前端
```bash
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`