MCPcopy Index your code
hub / github.com/dreamsofcode-io/grpc

github.com/dreamsofcode-io/grpc @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
181 symbols 267 edges 11 files 18 documented · 10% 753 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Dreams of Code gRPC

This project provides the source code for the gRPC video by Dreams of Code.

Video instructions

In order to install protobuf on your own machine, you can use the following commands

macOS

$ brew install protobuf protoc-gen-go protoc-gen-go-grpc

alternatively you can install the protoc plugins using golang

$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1

Arch Linux

$ pacman -S protobuf

Plugins

Using yay

$ yay -S protoc-gen-go protoc-gen-go-grpc

Using golang

$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1

GRPC Clients

In this video, I use grpcui and grpcurl

Calculator

The calculator code can be found in the ./calulator directory.

You can also deploy an instance of it yourself on acorn by clicking the following button:

Run in Acorn

Pokedex

The Pokedex API can be found in the ./pokemon-api directory.

You can also deploy an instance of it yourself on acorn by clicking the following button:

Run in Acorn

Disabling TLS

When writing gRPC code, you can disable tls by using the following lines

opts := []grpc.DialOption{
    grpc.WithTransportCredentials(insecure.NewCredentials())
}

If you're wanting to connect locally, you'll need to use the -plaintext flag with both grpcui and grpcurl

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

pokemonToResponse
called by 4
pokemon-api/pokedex/model.go
FindByID
called by 2
pokemon-api/pokedex/repo.go
Insert
called by 1
pokemon-api/pokedex/repo.go
FindAll
called by 1
pokemon-api/pokedex/repo.go
main
called by 0
pokemon-api/main.go
NewServer
called by 0
pokemon-api/pokedex/server.go
Create
called by 0
pokemon-api/pokedex/server.go
Read
called by 0
pokemon-api/pokedex/server.go

Shape

Method 128
Function 27
Struct 19
Interface 6
TypeAlias 1

Languages

Go100%

Modules by API surface

pokemon-api/pb/pokemon.pb.go60 symbols
pokemon-api/pb/pokemon_grpc.pb.go35 symbols
grpcalc/pb/calculator_grpc.pb.go35 symbols
grpcalc/pb/calculator.pb.go26 symbols
pokemon-api/pokedex/server.go7 symbols
grpcalc/server/main.go7 symbols
pokemon-api/pokedex/repo.go6 symbols
pokemon-api/pokedex/model.go2 symbols
pokemon-api/main.go1 symbols
pokemon-api/database/db.go1 symbols
grpcalc/client/main.go1 symbols

For agents

$ claude mcp add grpc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact