This is an example accompanying an article published here:
https://medium.com/heneise/service-to-service-communication-with-hemera-and-nats-d3cbf0727ef8
- Docker Compose
git clone https://github.com/heneise/hemera-nats-demo.git
cd hemera-nats-demo
docker-compose up
# Put products into the cart
curl \
-XPOST localhost:3000/cart \
-H "Content-Type: application/json" \
-d '{"productId":0, "quantity":1}'
curl \
-XPOST localhost:3000/cart \
-H "Content-Type: application/json" \
-d '{"productId":2, "quantity":5}'
# Retrieve the cart
curl localhost:3000
Special thanks to the team behind NATS and Dustin Deus, the author of hemera.
This project is licensed under the MIT License - see the LICENSE file for details