[]: # Language: markdown
[]: # Path: auth-layout/README.md
you must have docker installed, and start the containers which include Postgres, Redis, Etcd, RabbitMQ or Nats.
- run
docker-compose up -d
to start the containers if you don't have base service components - modify the /scripts/config.json to application-compliant
- run
make config
put /scripts/config.json to etcd, based on you have installedectdctl
go build -o auth
./auth --registry=etcd --registry_address=127.0.0.1:2379 --config=./script/config.yaml
./auth --config=./script/config.yaml
- [bll] Business logic layer
- [client] If server need request other service, the client can do. provide grpc, http, websocket etc.
- [server] Means the server provide service by grpc, http, websocket etc
- [config] Provide config file and other init
- [event] Provide event bus
- [errors] Provide unified external error handling
- [collector] Provide log, trace and metric collect
- [model] Provide model and entity
- [util] General tools
- [store] Provide storage
- [lib] Self-defined library
- [script] Some config script and sql script