amaui AMQP
AMQP
MIT license
Production ready
100% test cov
Nodejs
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
Getting started
Add
yarn add @amaui/amqp
Add amqplib
peer dependency.
yarn add amqplib
Use
import AmauiAmqp from '@amaui/amqp';
import Config from './config';
const amauiAmqp = new AmauiAmqp({
uri: Config.amqp.rabbitmq.uri,
queues: Config.amqp.rabbitmq.queues,
exchanges: Config.amqp.rabbitmq.exchanges,
});
await amauiAmqp.channel;
await amauiAmqp.send('a', 'a');
await amauiAmqp.checkQueue();
Dev
Install
yarn
Test
yarn test
One time local setup
Install docker and docker-compose
Make docker containers
yarn docker
Prod
Build
yarn build