Reviews informix tables for payments created by v5 legacy-payment-processor and moves them through the payment process
- Mimic PACTs processing of payments from status Entered to status Owed
- NodeJS
- Informix
- Docker(CE 17+)
- Docker Compose
See config/default.js. Most of them is self explain there.
PORT: API server port; default to3001SYNC_INTERVAL: the interval of schedule; default to5(minutes)SYNC_ENABLED: if the sync should run. Allows you to turn off the service via configLOG_LEVEL: default infoINFORMIX: object of properties to connect to informix
To install foreman follow this link To know how to use foreman follow this link
If you run something with nf run npm run <something> instead of npm run <something>, it'll load in a .env file from the root of the project
To simplify deployment, we're using docker. To build the images or run the container:
cd <legacy-challenge-migration-cli>/docker
docker-compose up
This will automatically build the image if have not done this before. After container has been run, go to container shell and install dependencies:
docker exec -ti legacy-challenge-migration-cli bash
npm i