This project is an example of a quick-start project developed in node, using AMQP protocol through rabbitmq instance
Two dockers are generated:
- one based on the official
nodeimage - one based on the official
aplineimage and embedding a native version of the node application, build withpkg
Each dockerfile builds the application directly
Create an AMQP message test using the api rest :
curl http://localhost:3000/amqp/produce
Check the logs, the message have been produced and consumed, using respectively the example-producer.js - and example-consumer.js
curl --data '{"message":"consume me please"}' -H 'Content-Type: application/json' http://localhost:3000/amqp/produce
curl --data '{"fail":true}' -H 'Content-Type: application/json' http://localhost:3000/amqp/produce