Use below codes by order in terminal inside project folder using Dockerfile
docker build -t <preferred_image_tag> .
docker run -d -p 15672:15672 -p 5672:5672 <preferred_image_tag>
First, change .env-example file's name to .env
- AMQP_URL
- EXCHANGE_NAME
- QUEUE_NAME
- ROUTING_KEY
- PORT
npm i
or yarn i
npm start
You must send HTTP POST request to http://localhost:port/. Request body will transform to message data. For spesifying delay time, you should send delay param with request URL.
Example: http://localhost:3000?delay=5000