habesha-rabbitmq-lib
v0.0.7
Published
A reusable RabbitMQ library for Node.js microservices, providing easy integration with RabbitMQ for message production and consumption.
Downloads
3
Readme
RabbitMQ Library
A reusable RabbitMQ library for Node.js microservices, providing easy integration with RabbitMQ for message production and consumption.
Table of Contents
- Features
- Installation
- Usage
- Configuration
- Example
- API Endpoints
- Requirements
- Development
- Contributing
- License
Features
- Simplified RabbitMQ connection management
- Easy-to-use producer and consumer services
- Configuration through environment variables
- Comprehensive logging using Pino
Installation
To use this library in your microservices, you need to install it via npm.
npm install habesha-rabbitmq-lib
## Usage
Configuration
Ensure you have a .env file in your project root with the following environment variables:
``bash
RABBITMQ_URL=amqp://user:password@localhost:5672
PORT=3000
QUEUE_NAME=my-queue