Melkeydev / go-blueprint

Go-blueprint allows users to spin up a quick Go project using a popular framework
https://docs.go-blueprint.dev/
MIT License
2.96k stars 191 forks source link

[Feature Request] GRPC support #246

Open syedolive opened 4 weeks ago

syedolive commented 4 weeks ago

Tell us about your feature request

Hi maintainers, first of all love the boilerplate. Just started with Go few weeks ago. I was wondering if a Grpc setup can be added to it just like nestjs does. I know that's a framework and all but since its generating a set of tools to get started quickly like a framework does in a sense. Would It be possible? Its a good to have IMO.

Disclaimer

H0llyW00dzZ commented 4 weeks ago

Tell us about your feature request

Hi maintainers, first of all love the boilerplate. Just started with Go few weeks ago. I was wondering if a Grpc setup can be added to it just like nestjs does. I know that's a framework and all but since its generating a set of tools to get started quickly like a framework does in a sense. Would It be possible? Its a good to have IMO.

Disclaimer

  • [x] I agree

It is possible; however, GRPC is unlike other. It has some limitations, especially for code generation using protoc.

If you are looking to get started quickly, you can take a look at my repository about GRPC/PROTO here.

Ujstor commented 4 weeks ago

We are on board if somebody wants to implement it in Blueprint as an Advanced flag.

https://github.com/twitchtv/twirp Seems like a good framework to go with.

There is also another ticket where we discussed this #215

syedolive commented 3 weeks ago

Tell us about your feature request

Hi maintainers, first of all love the boilerplate. Just started with Go few weeks ago. I was wondering if a Grpc setup can be added to it just like nestjs does. I know that's a framework and all but since its generating a set of tools to get started quickly like a framework does in a sense. Would It be possible? Its a good to have IMO.

Disclaimer

  • [x] I agree

It is possible; however, GRPC is unlike other. It has some limitations, especially for code generation using protoc.

If you are looking to get started quickly, you can take a look at my repository about GRPC/PROTO here.

Hey man, I do have grpc setup and since I use Ubuntu, protoc is not a problem for me. I just thought having a setup for grpc and providing protoc instructions at the end of the installations would be cool. I'm pretty sure people working with go are mature enough to set those up by themselves.

syedolive commented 3 weeks ago

We are on board if somebody wants to implement it in Blueprint as an Advanced flag.

https://github.com/twitchtv/twirp Seems like a good framework to go with.

There is also another ticket where we discussed this #215

I'm gonna look into it. I'm fairly new to go but GRPC is universal for me like json as I have been using grpc communication from Nestjs to go. And since we're planning for a transition to go and replacing smaller service to go. This blueprint would be a heaven breeze for me.

Ujstor commented 3 weeks ago

Perfect, I am assigning this to you. Implementation needs to integrate into the overall project without conflicting with other components. Some way for the user to test the endpoint would be nice. The goal is to showcase how to integrate gRPC and provide a starting point.

ashupednekar commented 2 weeks ago

Hi, if we can figure out a way to keep the generated pb wrappers in an abstracted manner, should be doable. I've done something similar for python (link).

Should be cleaner and simpler in go cuz of the package structure... shall I give it a go ?