Before running the program you need to run the command (to install the required libraries):
npm install
Then to run the producer, run the following command from the command line:
node producer_program.js
The producer program can be configured by editing the file producer_config.js
To run the consumer, run the following command from the command line:
node consumer_program.js
The consumer program can be configured by editing the file consumer_config.js