sagikazarmark/modern-go-application

Is there any tutorial or more detailed document for gokit beginner?

leopku opened this issue · 3 comments

Thanks for this awesome project.

Before I came into this project, I have no experience of gokit.
I want to use this project to learn gokit and start my first gokit project.
Is there any tutorial or more detailed document for gokit beginner to do things like steps of creating new service etc.

Best regards.

Thanks for reaching out, I'm glad you like the project.

Unfortunately there isn't really a documentation for this project...yet.

For examples, you could check the project website: http://gokit.io/

Thanks a lot.

Another question, is modern-go-application support multi transports/endpoints/services other than todo in one application especially for GraphQL endpoint?
If yes, How can I do it?

I had learned the codes of https://github.com/go-kit/kit/tree/master/examples/shipping, it seems simple. And it's clean how to add a new transports/endpoints/services.

After cloning this awesome project and running init.sh, I found router path /graph was mapped to graphql handler of tododriver in internal/app.go. I add two questions.

  1. If I want to add a new endpoint, how can I map the new GraphQL handler to /graph? Or I should map each graphql handler to a new path? Traditionally, there is only one endpoint something like '/graphql' in a GraphQL app.
  2. Is there any (command line) tools to add transports/endpoints/services quickly?

Appreciate for your answers.