Skip to content

chazsmi/stock-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Stock Service

An example RPC stock service using Go Micro

This service is an example service in the following scenero

### Dependencies - Go Micro - Consul - Cassandra - RabbitMQ

To run the service

  • Make sure you have Consul installed and running
  • Make yourself a copy of the config yaml file specifying the location of your Cassandra and Rabbit instances
 cp config.example.yml config.yml
  • Run the service
 go run main.go --config_file_path=path/to/your/cofig/file

Query the service from the command line

 go get github.com/micro/micro
 micro query charlieplc.stock Stock.Update '{"sku":"123456","amount":1}' 

To do

  • DB migrations

About

An example stock service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published