Skip to content

Latest commit

 

History

History
executable file
·
44 lines (33 loc) · 1.29 KB

README.md

File metadata and controls

executable file
·
44 lines (33 loc) · 1.29 KB

Installation

Installing protoc

PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP

Installing micro

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
wget -q  https://raw.githubusercontent.com/2637309949/micro/master/scripts/install.sh -O - | /bin/bash

Run micro server

micro server

Multi-cluster Deployment

Usage

micro new test && cd test-service && make proto && make up

VerifyAccess

micro auth create rule --access=granted --scope='*' --resource="*:*:*" onlyloggedin
micro auth create rule --access=granted --resource="service:auth:*" auth
micro auth create rule --access=granted --resource="service:micro.:*" micro
micro auth create rule --access=granted --resource="service:assert:*" assert
micro auth create rule --access=granted --resource="service:quicktype:Quicktype.Call" quicktype
micro auth create rule --access=granted --resource="service:cas:*" cas
micro auth delete rule default