-
Install Consul
Consul is the default registry/discovery for go-micro apps. It's however pluggable. https://www.consul.io/intro/getting-started/install.html
-
Run Consul
$ consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul
-
Download and start the service
go get github.com/unicok/auth-srv ./auth-srv --mongodb_url="mongodb://127.0.0.1:27017/account"
用户中心,支持各种第三方登陆,暂未实现。