An example of how to use the amqp-simple-pub-sub
library to implement competing micro-services.
-
Ensure you have Docker installed.
-
Clone this repo to your local machine, then,
-
From within the project folder:
docker-compose up -d
-
Wait a few seconds for RabbitMQ to start, then:
npm start
-
You can
crtl-c
when you get tired of watching it.
Branch | Status | Coverage | Audit | Notes |
---|---|---|---|---|
develop |
Work in progress | |||
master |
Latest release |
- NodeJS, version 12.18.2 (LTS) or better (I use
nvm
to manage Node versions โbrew install nvm
.) - Docker (Use Docker for Mac, not the homebrew version)
npm install
docker-compose up -d
Runs Rabbit MQ.
ctrl-c
to stop it.
npm test
โ runs the unit tests (quick and does not needrabbitmq
running)
npm run lint
Please see the contributing notes.