diff --git a/README.md b/README.md index 9e99e43..8203288 100644 --- a/README.md +++ b/README.md @@ -12,16 +12,33 @@ - Makefile # 自动化处理任务, 审核代码, 生成二进制文件, 执行sql迁移 ``` -## hello world +## oauth2-authorize-server + +### 项目h5 https://git.leonmin.com/example/oauth2-h5 -```go -package main -impot "fmt" -func main() { - fmt.Println("hello world!") -} -``` -执行代码 ```bash -$ go run ./cmd/api # hello world! -``` \ No newline at end of file +$ 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)