Skip to content

justshare-io/nextgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nextgo

your site, built now.

Try it out

# hit the http api server
go run github.com/justshare-io/nextgo@latest
curl --header "Content-Type: application/json" --data '{"name": "Jane"}' http://localhost:8080/greet.GreetService/Greet 

# ui for calling the grpc server, like postman.
go run github.com/fullstorydev/grpcui/cmd/grpcui@latest -plaintext localhost:8080

Learn

Code

  • server: I would start by reading the comments in main.go.
  • proto: greet.proto is the protobuf file that defines the service.

Proto

If you change the proto file, you need to regenerate the go code.

go install github.com/bufbuild/buf/cmd/buf@latest
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest

go generate ./...

GPRC

go install github.com/fullstorydev/grpcui/cmd/grpcui@latest
grpcui -plaintext localhost:8080

Dependencies

Goals

  • Works today, tomorrow, and next year.
  • Scales with both your infra and team.
  • Easy to learn and fun to use.

Recommended Reading

Stack

  • go
    • grpc

Releases

No releases published

Packages

No packages published

Languages