feature: 更新项目说明

This commit is contained in:
梁真铭 2025-01-02 15:38:12 +08:00
parent 7d6068a864
commit 4d52ce8234

View File

@ -12,16 +12,33 @@
- Makefile # 自动化处理任务, 审核代码, 生成二进制文件, 执行sql迁移 - Makefile # 自动化处理任务, 审核代码, 生成二进制文件, 执行sql迁移
``` ```
## hello world ## oauth2-resource-server
### 项目h5 https://git.leonmin.com/example/oauth2-h5
```go
package main
impot "fmt"
func main() {
fmt.Println("hello world!")
}
```
执行代码
```bash ```bash
$ go run ./cmd/api # hello world! $ npm install
``` $ npm run dev
```
### 资源服务器 https://git.leonmin.com/example/oauth2-resource-server
```bash
$ make run/api # 或者go run ./cmd/api -port=4002
```
### 授权服务器 https://git.leonmin.com/example/oauth2-authorize-server
```bash
$ make run/api # 或者go run ./cmd/api -port=4001
```
### 截图
![首页](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-home.png)
![登录](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-login.png)
![同意授权](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-agree-auth.png)
![授权数据](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-authorize.png)