generated from example/golang-server-template
feature: 更新项目说明
This commit is contained in:
parent
7d6068a864
commit
4d52ce8234
37
README.md
37
README.md
|
|
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
### 截图
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user