Table of contents
Overview
Wayne (Way-In) is an open-source, self-hosted, auth solution written as a GoLang-based micro-service. Local development available via Docker. Wayne is the toughest guy in LetterKenny, let him be your bouncer.
Setup
Setup Dev Environment
1) Pull down the repo
git clone git@github.com:bmsandoval/wayne.git
2) Install Golang
- add the following to your bash profile. these may very.
- IMPORTANT : since using modules, this project must NOT reside in your GOPATH listed below
export PATH=$PATH:/usr/local/go/bin:$GOBIN
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOROOT/bin
export GOPATH=~/projects/go
export PATH=$PATH:$GOPATH/bin
4) Download Dependencies
go mod download && go mod vendor
5) Install Protoc
apt install -y protobuf-compiler
and set it up with your global golang
go get -u github.com/golang/protobuf/protoc-gen-go
6) Install DockerCE
- Recommended - Docker version 20.10.7
7) Source the bash profile
. .profile
Testing
To test the application
- download BloomRPC. (postman-alternative for gRPC)
- 'import paths' and specify the 'servers' directory. hit 'refresh' if you ever change a proto file
- its the search-looking button next to refresh in the upper left
- now you can test it!!
TODO: look into grpc-json-proxy (https://github.com/jnewmano/grpc-json-proxy)