gocanto / users-grpc-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC Users Service

Simple users gRPC service.

Prerequisites

You would have to go through the following prerequisites in order for you to try this code.

How can I test the code?

First, you would need to clone this repository. Like so:

git@github.com:gocanto/users-grpc-service.git

After you have done this, you have to position yourself at the project root folder from you CLI cd users-grpc-service from two different tabs or CLI windows.

Once you are in the project, you would have to type the following commands.

  • From one of your opened tab/window, you need to type go run server/server.go for you to have the given gRPC server running. After doing so, you would be able to see the following output Server listing at [::]:50051
  • Then, you need to position yourself withing your second tap/window and type the following. go run client/client.go for you to make clients petitions to the running server.

Proto generation commands

Generate proto files: protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative user/user.proto

Contributing

Please, feel free to fork this repository to contribute to it by submitting a functionalities/bugs-fixes pull request to enhance it.

License

Please see License File for more information.

How can I thank you?

There are many ways you would be able to support my open source work. There is not a right one to choose, so the choice is yours.

Nevertheless 😀, I would propose the following

  • ⬆️ Follow me on Twitter.
  • Star the repository.
  • 🤝 Open a pull request to fix/improve the codebase.
  • ✍️ Open a pull request to improve the documentation.
  • Buy me a coffee?

Thank you for reading this far. 😊

About

License:MIT License


Languages

Language:Go 75.8%Language:Dockerfile 24.2%