Merge branch 'release/v0.1.1'
This commit is contained in:
commit
f8bc2f99c4
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,3 +2,5 @@
|
||||||
.rocksdb
|
.rocksdb
|
||||||
workshop
|
workshop
|
||||||
*.7z
|
*.7z
|
||||||
|
*.pb.go
|
||||||
|
*.gw.go
|
22
readme.md
22
readme.md
|
@ -1,20 +1,32 @@
|
||||||
# 编译流程
|
# 编译依赖
|
||||||
|
|
||||||
|
* 自行解决墙的问题. golang 入门.
|
||||||
|
* 安装 protobuf-c-compiler(protobuf-compiler-grpc) // 解决 protoc --go_out=plugins=grpc等问题
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
go get -u github.com/golang/protobuf/proto // golang protobuf 库
|
||||||
|
go get -u github.com/golang/protobuf/protoc-gen-go //protoc --go_out 工具
|
||||||
|
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
|
||||||
|
go get google.golang.org/grpc
|
||||||
|
```
|
||||||
|
|
||||||
|
## 编译流程
|
||||||
|
|
||||||
* sh generate.sh
|
|
||||||
* git submodule init
|
* git submodule init
|
||||||
* git submodule update
|
* git submodule update
|
||||||
|
* sh generate.sh
|
||||||
* go build
|
* go build
|
||||||
|
|
||||||
## 执行流程
|
### 执行流程
|
||||||
|
|
||||||
* ./workshop
|
* ./workshop
|
||||||
|
|
||||||
### 测试流程
|
#### 测试流程
|
||||||
|
|
||||||
* 端口写死4433, 后期可以改成配置形式.
|
* 端口写死4433, 后期可以改成配置形式.
|
||||||
* 执行 curl -X POST -k http://localhost:4433/v1/name/firstname 返回姓氏 格式 {"message":"融"}
|
* 执行 curl -X POST -k http://localhost:4433/v1/name/firstname 返回姓氏 格式 {"message":"融"}
|
||||||
|
|
||||||
#### 其他文档
|
##### 其他文档
|
||||||
|
|
||||||
* 自动化接口测试推行 http://wiki.ym/pages/viewpage.action?pageId=21431287
|
* 自动化接口测试推行 http://wiki.ym/pages/viewpage.action?pageId=21431287
|
||||||
* API文档及自动化测试推行情况 http://wiki.ym/pages/viewpage.action?pageId=29953694
|
* API文档及自动化测试推行情况 http://wiki.ym/pages/viewpage.action?pageId=29953694
|
||||||
|
|
Loading…
Reference in New Issue
Block a user