- Go >= 1.11
- Github Personal Access Token
- Get one from https://github.com/settings/tokens
- Set the token as env variable
GH_ACCESS_TOKEN
-
Run
go run cmd/web/web.go
-
Open browser: http://localhost:8080/gh/profile/antonybudianto
-
Run
go run cmd/grpc_server/server.go
-
Try using GRPC client:
go run cmd/grpc_client/client.go <github-username>
-
Misc: Generate proto
protoc --go_out=plugins=grpc:. protos/*.proto
-
Run
go run cmd/cli/cli.go <github-username>
$ env GOOS=linux GOARCH=amd64 go build -o bin/web cmd/web/web.go
MIT