Skip to content

Latest commit

 

History

History
111 lines (76 loc) · 1.79 KB

DEVELOPER.md

File metadata and controls

111 lines (76 loc) · 1.79 KB

DEVELOPER

Installation

go install -v github.com/douyu/jupiter/cmd/jupiter@latest

Initialize Project

jupiter new testproject-go
cd testproject-go
go mod tidy -v

Launch Juno Platform

kubectl apply -f https://github.com/douyu/juno/releases/download/latest/install.yml

Generation

make init
make generate

Running

  • Run exampleserver through Makefile
make run
  • Run and watch file changes to rebuild
jupiter run -c cmd/exampleserver/.jupiter.toml
  • Run and watch file changes to rebuild through docker-compose
docker-compose up
  • Run only
go run ./cmd/exampleserver --config config/exampleserver/local-live.toml

Test

  • HTTP
curl "http://localhost:9527/v1/helloworld.Greeter/SayHello/bob"
{"error":0,"msg":"","data":{"name":"hello bob","ageNumber":0,"sex":0,"metadata":null}}
  • GRPC
buf curl --schema api --protocol grpc --http2-prior-knowledge --data '{"name":"bob"}' http://localhost:9528/helloworld.v1.GreeterService/SayHello
{"data":{"name":"hello bob"}}

Jaeger Admin

open http://localhost:16686/search to checkout opentelemtry trace data.

Jaeger

Bugs and Feedback

For bug report, questions and discussions please submit an issue.

Contributing

Contributions are always welcomed!

You can start with the issues labeled with good first issue.

Contact