Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hoangtk0100/grpc-basic-api

Create a basic API using gRPC with Protobuf
https://github.com/hoangtk0100/grpc-basic-api

Last synced: about 2 months ago
JSON representation

Create a basic API using gRPC with Protobuf

Awesome Lists containing this project

README

        

# grpc-basic-api
A basic API using gRPC with Protobuf

## Installation
on Terminal run this command
```
protoc --proto_path=proto --go_out=plugins=grpc:proto service.proto
```

To start server
```
go run server/main.go
```

Then open another terminal window
```
go run client/main.go
```

Test it on your web browser
```
http://localhost:8080/add/4/46

http://localhost:8080/mult/4/46
```