chore: sync
This commit is contained in:
41
README.md
41
README.md
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user