navillera

command module
v0.0.0-...-591a77f Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 2 Imported by: 0

README

NAVILLERA

Navillera is a service boilerplate using golang and grpc connection running in docker container

Prerequisite

  • Install go in local machine for convenience development experience (auto complete, code sugestion, etc)
  • Install golang plugin to your editor choice (ie. VSCode, Atom)
  • Docker and docker-compose
  • Protoc and proto-gen-go plugin (described in the next session)

Protoc and Proto-gen-go

Install protoc and protoc-gen-go in Mac
  • Install protoc-gen-go use homebrew brew install protoc-gen-go it will also install protoc
Install protoc and protoc-gen-go in Ubuntu
  • Install protoc-gen-go go get -u github.com/golang/protobuf/protoc-gen-go. It will also install protoc
  • The compiler plugin, protoc-gen-go, will be installed in $GOPATH/bin unless $GOBIN is set. It must be in your $PATH for the protocol compiler, protoc, to find it
Install protoc and protoc-gen-go in Windows
  • TODO

How to run

Despite, it is possible to run this project in local machine we strongly recommend you to run it using docker. Please follow this steps:

  • generate protobuf file if you have not generated it yet or you made changes to proto file protoc -I proto/ proto/call.proto --go_out=plugins=grpc:proto
  • using docker-compose run docker-compose -f docker-compose.dev.yaml
  • navillera is available in localhost:50050 you can access it using RPC client your choices

Nice to read

TODO

  • Change procedure entity placeholder with real world scenario included but not limited to get, getById, post, put and delete
  • Add mongo store interface
  • Guide to install protoc and protoc-gen-go in Windows

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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