Generates job for sms from a csv-file with personalid numbers.
Create .env file with your local configs
KOR_SERVICE_URL=url-for-kor-service
KOR_JWT_SECRET=jwt-secret-for-kor-service
SMS_SERVICE_URL=url-for-sms-service
SMS_SERVICE_SENDER=sender
SMS_MESSAGE=message-to-send
DATA_DIRECTORY_PATH=test/directories/data
DONE_DIRECTORY_PATH=test/directories/done
JOBS_DIRECTORY_PATH=test/directories/jobs
QUEUE_DIRECTORY_PATH=test/directories/jobs
Add a csv-file to the queue
directory.
The column for personalid number must have the header fnr
Run the function
$ npm start
This will generate jobs in the jobs
directory. Handle the jobs with robot-post-payload
or similar
- robot-post-payload - robot for distributing messages
- micro-kor - microservice for kontakt- og reservasjonsregisteret
- micro-sms - microservice for sending sms