This is the consumer part of the cashcog-approval system. This script opens up a connection to the stream api and starts consuming expense events.It also validate events and stores the events into MongoDB.
- Clone the repository
- Install pm2
npm install pm2 -g
- In ecosystem.config.js fill in the MongoDB connection string
- Run the following command from the root folder:
npm install
- Run the following command from the root folder:
pm2 start ecosystem.config.js --env production