An open API service indexing awesome lists of open source software.

https://github.com/bruce-mig/grpc-crud-mongodb

gRPC implementation of a crud API using protobuffers with MongoDB persistence.
https://github.com/bruce-mig/grpc-crud-mongodb

go grpc mongodb protobuffer

Last synced: about 1 month ago
JSON representation

gRPC implementation of a crud API using protobuffers with MongoDB persistence.

Awesome Lists containing this project

README

          

# A gRPC microservice written in Golang

# Installing protobuffer

### Linux

```
sudo apt install -y protobuf-compiler
```

### MacOS

```
brew install protobuff
```

### GRPC and Protobuffer package dependencies
```bash
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
```

```bash
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
```

NOTE: You should add the `protoc-gen-go-grpc` to your PATH

```
PATH="${PATH}:${HOME}/go/bin"

```

### Running the service

```
make run
```