Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hoangtk0100/grpc-basic-api
- Owner: hoangtk0100
- License: mit
- Created: 2019-06-21T10:52:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T11:17:29.000Z (over 5 years ago)
- Last Synced: 2024-06-20T23:57:00.133Z (6 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/46http://localhost:8080/mult/4/46
```