Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 949 Bytes

README.md

File metadata and controls

54 lines (37 loc) · 949 Bytes

Go Shopping

This example contains a suite of microservices all built on the go micro framework. The goal of this example is to provide you with a practical example of multiple services operating within a lightweight ecosystem that gives you more than just the simple "hello world" functionality. In addition to 3 backing services, there is a single aggregating API service that mimicks and extremely common best practice in cloud native/microservice development.

编译

make all 

运行

Redis

# 安装和启动Redis
sudo apt-get install redis-server
sudo /etc/init.d/redis-server  start

consul

# 注册中心
./consul agent -dev

catalogd

go run catalog/cmd/catalogd/main.go

shippingd

go run shipping/cmd/shippingd/main.go

warehoused

go run warehouse/cmd/warehoused/main.go

api

go run api/cmd/apid/main.go