Skip to content

A sample suite of services built on the go-micro framework

Notifications You must be signed in to change notification settings

feixiao/go-shopping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A sample suite of services built on the go-micro framework

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 93.9%
  • Makefile 4.6%
  • Shell 1.5%