Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
/ hemera-nats-demo Public archive

Service to Service communication with Hemera and NATS

License

Notifications You must be signed in to change notification settings

zentered/hemera-nats-demo

Repository files navigation

Hemera NATS Demo

example sequence

This is an example accompanying an article published here:

https://medium.com/heneise/service-to-service-communication-with-hemera-and-nats-d3cbf0727ef8

Requirements

  • Docker Compose

Setup & Startup

git clone https://github.com/heneise/hemera-nats-demo.git
cd hemera-nats-demo
docker-compose up

Querying the API

# 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

Thanks

Special thanks to the team behind NATS and Dustin Deus, the author of hemera.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Service to Service communication with Hemera and NATS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published