Skip to content

A simple example of how to use the amqp-simple-pub-sub library to implement competing micro-services.

License

Notifications You must be signed in to change notification settings

davesag/competing-services-example

Repository files navigation

competing-services-example

An example of how to use the amqp-simple-pub-sub library to implement competing micro-services.

See Also

To Run

  1. Ensure you have Docker installed.

  2. Clone this repo to your local machine, then,

  3. From within the project folder:

    docker-compose up -d
  4. Wait a few seconds for RabbitMQ to start, then:

    npm start
  5. You can crtl-c when you get tired of watching it.

Development

Branches

Branch Status Coverage Audit Notes
develop CircleCI codecov Vulnerabilities Work in progress
main CircleCI codecov Vulnerabilities Latest release

Prerequisites

Initialisation

npm install

To Start the queue server for integration testing

docker-compose up -d

Runs Rabbit MQ.

Run docker-compose down to stop it.

Test it

  • npm test — runs the unit tests (quick and does not need rabbitmq running)

Lint it

npm run lint

Contributing

Please see the contributing notes.