golang-todo app
Prerequisites
Golang
- Download and install the latest version of Go
- Make sure the following returns a result
echo $GOPATH
Dependency management system for Go
Dep is the dependency management system used for this project.
Protobuf
- Install protoc (platform dependent) and make sure you put it in your path
For more info on gRPC with Go visit https://grpc.io/docs/quickstart/go/
Installation
To get all dependencies, run
dep ensure
Next run the following to be sure that everything is building properly:
go build
Development
Running project locally
To run the project locally, run the following
go run server.go
Middleware
https://github.com/grpc-ecosystem/go-grpc-middleware
Logging
For logging the project uses zap that is widely adopted along the Golang ecosystem
Dependencies
To add a new go dependency run the following
dep ensure -add <your-dependency>
Gen files from proto files
protoc -I protoc/ protoc/todoapp.proto --go_out=plugins=grpc:protoc/