Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
gly-hub committed Mar 2, 2024
1 parent 2c78f16 commit 470384c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 65 deletions.
35 changes: 3 additions & 32 deletions readme-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,38 +31,9 @@ go-dandelion项目意在通过集成相关组件,方便开发者快速构建
+ 可自定义中间件、插件

## 🖥go-dandelion-cli使用

### 1.安装
```
go get github.com/team-dandelion/go-dandelion/go-dandelion-cli@latest
go install github.com/team-dandelion/go-dandelion/go-dandelion-cli@latest
```

### 2.创建项目
创建本地项目目录,根据提示创建对应项目
```shell
# 创建应用
go-dandelion-cli app -n go-admin-example
# 进入应用目录
cd go-admin-example
# 构建服务
go-dandelion-cli build -n go-admin-example
需要创建的服务类型,输入数字(1-rpc 2-http):1
rpc服务名称:example-server
是否初始化mysql(y/n):y
是否初始化redis(y/n):y
是否初始化logger(y/n):y
是否初始化trace链路(y/n):y
```

### 3.运行项目
```shell
cd example-server
#进入服务目录
go build -o example-server
#运行
./example-server server
```
<a href="https://github.com/team-dandelion/go-dandelion-cli">
go-dandelion-cli
</a>

## 🔥贡献者

Expand Down
37 changes: 4 additions & 33 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,10 @@ The go-dandelion project aims to provide developers with a project framework tha
+ Integrated logging, distributed tracing, rate limiting, circuit breaking, service registration, service discovery, and other features.
+ Customizable middleware and plugins.

## go-dandelion-cli Usage

## 1. Installation
```
go get github.com/team-dandelion/go-dandelion/go-dandelion-cli@latest
go install github.com/team-dandelion/go-dandelion/go-dandelion-cli@latest
```

## 2. Create a Project
Create a local project directory and create the corresponding project based on the prompts.
```shell
# Create an application
go-dandelion-cli app -n go-admin-example
# Enter the application directory
cd go-admin-example
# Build the service
go-dandelion-cli build -n go-admin-example
Enter the type of service to create, enter a number (1 for rpc, 2 for http): 1
RPC service name: example-server
Initialize MySQL (y/n): y
Initialize Redis (y/n): y
Initialize logger (y/n): y
Initialize trace links (y/n): y
```

## 3. Run the Project
```shell
cd example-server
# Enter the service directory
go build -o example-server
# Run the service
./example-server server
```
## go-dandelion-cli
<a href="https://github.com/team-dandelion/go-dandelion-cli">
go-dandelion-cli
</a>

## 🔥Contributors

Expand Down

0 comments on commit 470384c

Please sign in to comment.