Skip to content

Commit ac2e2d3

Browse files
committed
Update usage
1 parent 4baeb59 commit ac2e2d3

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

src/pages/Dashboard/Home.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Home extends PureComponent {
6969
>
7070
<Card>
7171
<Alert
72-
message="gin-admin 6.0.0 现已发布,欢迎使用 gin-admin-cli 启动体验。"
72+
message="gin-admin 6.0.0 现已发布,欢迎使用下载启动体验。"
7373
type="success"
7474
showIcon
7575
banner
@@ -78,31 +78,24 @@ class Home extends PureComponent {
7878
marginBottom: 24,
7979
}}
8080
/>
81-
<Typography.Text strong>
82-
<a
83-
target="_blank"
84-
rel="noopener noreferrer"
85-
href="https://github.com/LyricTian/gin-admin-cli"
86-
>
87-
1. 基于 gin-admin-cli 构建
88-
</a>
89-
</Typography.Text>
90-
<CodePreview>go get -v github.com/LyricTian/gin-admin-cli</CodePreview>
91-
<CodePreview>gin-admin-cli new -m -d ~/go/src/gin-admin -p gin-admin</CodePreview>
9281
<Typography.Text strong>
9382
<a
9483
target="_blank"
9584
rel="noopener noreferrer"
9685
href="https://github.com/LyricTian/gin-admin"
9786
>
98-
2. 启动服务
87+
1. 下载并启动服务
9988
</a>
10089
</Typography.Text>
101-
<CodePreview>cd ~/go/src/gin-admin</CodePreview>
90+
<CodePreview>go get -v github.com/LyricTian/gin-admin/cmd/gin-admin</CodePreview>
91+
<CodePreview>cd $GOPATH/src/github.com/LyricTian/gin-admin</CodePreview>
10292
<CodePreview>
10393
go run cmd/gin-admin/main.go web -c ./configs/config.toml -m ./configs/model.conf --menu
10494
./configs/menu.yaml
10595
</CodePreview>
96+
<CodePreview>
97+
启动成功之后,可在浏览器中输入地址进行访问:http://127.0.0.1:10088/swagger/index.html
98+
</CodePreview>
10699
<Typography.Text
107100
strong
108101
style={{
@@ -114,7 +107,7 @@ class Home extends PureComponent {
114107
rel="noopener noreferrer"
115108
href="https://github.com/LyricTian/gin-admin-react"
116109
>
117-
3. 获取并运行 gin-admin-react
110+
2. 下载并运行 gin-admin-react
118111
</a>
119112
</Typography.Text>
120113
<CodePreview>git clone https://github.com/LyricTian/gin-admin-react.git</CodePreview>

0 commit comments

Comments
 (0)