MCPcopy Index your code
hub / github.com/Edmartt/grpc-crud

github.com/Edmartt/grpc-crud @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
135 symbols 287 edges 21 files 13 documented · 10% updated 6d ago★ 43

Browse by type

Functions 112 Types & classes 23
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gRPC Test Server

gRPC is an implementation of RPC (remote procedure calls) originally designed by Google. It is open source and is used for communications with client-server architecture.

gRPC can use protocol buffers as an interface definition language and as a format for message exchange.

If you want to know more visit: introduction to gRPC

This small project is a simple CRUD in which gRPC is used to register people's data such as name, surname and email, containing the service code, in a separate package the gRPC client and also an HTTP client through which in a simple way and in JSON format the data can be sent to avoid complications configuring clients such as POSTMAN or Insomnia for gRPC.

Requirements

  • Go 1.19+
  • SQLite
  • http client: POSTMAN, Insomnia, cURL

Running Locally

git clone https://github.com/Edmartt/grpc-crud.git

or ssh instead:

git clone git@github.com:Edmartt/grpc-crud.git

browse into project directory:

cd grpc-crud/

download dependencies

go mod tidy

set environment variables following the .env.example file and run

go run main.go

The command above will run the server-side code

Now you will need to run this next command for the http client:

go run pkg/client/http/main.go

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 81
Function 31
Struct 17
Interface 6

Languages

Go100%

Modules by API surface

internal/person/protos/bin/person.pb.go51 symbols
internal/person/protos/bin/person_grpc.pb.go25 symbols
internal/utils/logger.go13 symbols
tests/service_test.go5 symbols
internal/person/service.go5 symbols
internal/person/data/dataImplementation.go5 symbols
tests/grpc_mocks.go4 symbols
internal/person/data/dataIface.go4 symbols
pkg/client/http/handlers.go3 symbols
pkg/client/client.go3 symbols
internal/database/migrations.go3 symbols
internal/database/SQLite.go3 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page