https://github.com/zentered/hemera-nats-demo
Service to Service communication with Hemera and NATS
https://github.com/zentered/hemera-nats-demo
Last synced: about 1 year ago
JSON representation
Service to Service communication with Hemera and NATS
- Host: GitHub
- URL: https://github.com/zentered/hemera-nats-demo
- Owner: zentered
- License: mit
- Archived: true
- Created: 2018-02-28T08:14:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T12:40:05.000Z (over 8 years ago)
- Last Synced: 2025-04-02T23:05:58.567Z (about 1 year ago)
- Language: JavaScript
- Size: 415 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hemera NATS Demo

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](https://github.com/orgs/nats-io/people) and [Dustin Deus](https://github.com/StarpTech), the author of [hemera](https://github.com/hemerajs/hemera).
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details