/x-mali

eXample mali

Primary LanguageJavaScriptMIT LicenseMIT

x-mali

eXample Mali

Run server

$ yarn install
$ yarn start
LoL service running on 127.0.0.1:50051

Run client

$ go get github.com/fullstorydev/grpcurl
$ go install github.com/fullstorydev/grpcurl/cmd/grpcurl
$ grpcurl -plaintext -proto league_of_legends.proto localhost:50051 lol.LoL/ListChampion
{
  "champions": [
    {
      "type": "ASSASSIN",
      "name": "Akali",
      "message": "If you look dangerous, you better be dangerous."
    },
    {
      "type": "MAGE",
      "name": "Kennen",
      "message": "The Heart of the Tempest beats eternal...and those beaten remember eternally."
    }
  ]
}