golang-todo-app

command module
v0.0.0-...-e4423b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

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/

Documentation

Overview

Package main implements a simple gRPC server that demonstrates how to use gRPC-Go libraries to perform unary, client streaming, server streaming and full duplex RPCs.

It implements the route guide service whose definition can be found in routeguide/route_guide.proto.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL