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 | |||
main |
Latest release |
- NodeJS, 8.10.0+ (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.
Run docker-compose down
to stop it.
npm test
— runs the unit tests (quick and does not needrabbitmq
running)
npm run lint
Please see the contributing notes.