chore: sync

This commit is contained in:
2026-03-18 22:06:43 +08:00
parent e89678e61a
commit 0c4380c3c3
45 changed files with 5883 additions and 2 deletions

View File

@@ -1,3 +1,40 @@
# SproutGate
# 萌芽账户认证中心(SproutGate
Project scaffold repo.
前后端分离的统一账户认证中心:
- 前端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`