Skip to content

Commit

Permalink
docs: Update start.md (#988)
Browse files Browse the repository at this point in the history
* Update start.md

Add java-sdk uds demo doc

* docs: Update start.md

---------

Co-authored-by: 梓淞 <yuziyuan.yzy@antgroup.com>
  • Loading branch information
ChloroplastYu and 梓淞 authored Sep 20, 2023
1 parent 1694e7a commit dbf443e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docs/zh/start/uds/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ go build -o layotto
```

### step 2. 启动测试demo
<!-- tabs:start -->
#### **Go**

构建、运行 go 语言 demo:

Layotto提供了通过UDS调用gRPC接口的示例 [demo](https://github.com/mosn/layotto/blob/main/demo/uds/client.go)

Expand All @@ -85,3 +89,40 @@ go build client.go
./client
```

#### **Java**

构建、运行 java 语言 demo:

Layotto java-sdk已经支持通过UDS调用gRPC接口

```shell @if.not.exist java-sdk
git clone https://github.com/layotto/java-sdk
```

切换目录:

```shell
cd java-sdk
```

构建:

```shell @if.not.exist examples-uds/target/examples-uds-jar-with-dependencies.jar
# build example jar
mvn -f examples-uds/pom.xml clean package
```

运行:

```
java -jar examples-uds/target/examples-uds-jar-with-dependencies.jar
```

打印出以下信息说明运行成功:

```bash
greeting, helloworld
```

<!-- tabs:end -->

0 comments on commit dbf443e

Please sign in to comment.