Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Aseyed/go-gRPC-todo


https://github.com/Aseyed/go-gRPC-todo

go golang grpc grpc-go protobuf todo todoapp

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# gRPC-todo
#### This is a TODO app based on go lang and gRPC protocol

## pre-requirements
* Install go based on your system.
* Install requirements package with these comands:
* `go get -u github.com/golang/protobuf/{proto,protoc-gen-go}`
* `go get -u google.golang.org/grpc`

## Run the programm
* make proto file in go language
* `protoc -I . todo.proto --go_out=plugins=grpc:.`
* To run server
* `cd ./cmd/server && go build` (`cd` used to server be in same folder ad db file)
* `mv server ../.. && ./server`
* To run client
* `cd ./cmd/todo`
* `go run main.go list` (this option maybe not work; There is a problem in server side)
* `go run main.go add SOMETEXT`

## See What is in db
* `hexdump -c mydb.pb`
* `cat mydb.pb | protoc --decode_raw`