Backend-test is the command line node.js application, which watches with MongoDB collection and copies documents to another collection. During copy, it should anonymize some sencitieve data.
- Node.js v18+.
- MongoDB v3.6.0 (Run in replica sets or sharded clusters).
npm run build
node parser.js --input ./app.log --output ./errors.json --parser info,error
To generate new customers, use the following command:
node ./dist/app.js
To watch and anonymize customers, use the following command:
node ./dist/sync.js
To run application in reindex mode, use the following command:
node ./dist/sync.js --full-reindex