Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Aseyed/go-gRPC-todo
- Owner: Aseyed
- Created: 2020-01-07T12:00:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T10:24:00.000Z (about 5 years ago)
- Last Synced: 2024-10-19T08:36:32.654Z (4 months ago)
- Topics: go, golang, grpc, grpc-go, protobuf, todo, todoapp
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`