Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.22 KB

nats-example

This is an example Go project for running local development environment. It features:

Read more in our blog post: Go Docker dev environment with Go Modules and live code reloading

asciicast

Running

To start the services, simply run:

docker-compose up

Open new terminal and send some messages:

$ curl localhost:5000 -d "this is my message"
Sent message: this is my message with ID 01D09P02SBW5D0QPWP14QQZJWH

You should see the messages in the subscriber service output:

subscriber_1  | [00] 2019/01/03 11:01:27 received message: 01D09P02SBW5D0QPWP14QQZJWH, payload: this is my message