hanaboso / amqplib-plus

Enhanced Node.js amqplib used for work with RabbitMQ message broker
17 stars 5 forks source link

TypeScript example Unable to run script #10

Open krishna01012002 opened 4 years ago

krishna01012002 commented 4 years ago

Hi Hanaboso, I am using typescript , Just I want to publish message and receive message. I could not understand where to start, please correct me if I am wrong I think I need to create publisher.js and consumer.js then I should start rabbitmq-server , then I should run ./publisher.js then I should run ./consumer.js to see consumed messages?

Ref: https://github.com/hanaboso/amqplib-plus/blob/6135fa8be6c0c79256b123a7250759be056fb490/examples/publisher/publisher.js Ref: https://github.com/hanaboso/amqplib-plus/blob/6135fa8be6c0c79256b123a7250759be056fb490/examples/consumer/consumer.js

Not sure connection.js is required? since starting server on default port locally. Kindly suggest. Please provide me if any typescript examples

Environment details. MACOS and NPM $ /usr/local/opt/rabbitmq/sbin/rabbitmq-server

RabbitMQ 3.8.3

########## Copyright (c) 2007-2020 Pivotal Software, Inc.

########## Licensed under the MPL 1.1. Website: https://rabbitmq.com

Doc guides: https://rabbitmq.com/documentation.html Support: https://rabbitmq.com/contact.html Tutorials: https://rabbitmq.com/getstarted.html Monitoring: https://rabbitmq.com/monitoring.html

Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log /usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log

Config file(s): (none)

Starting broker... completed with 6 plugins.

krishna01012002 commented 4 years ago

Server started on http://localhost:15672/#/

krishna01012002 commented 4 years ago

Server started on http://localhost:15672/#/