Email worker is a background process that runs against email queue. It sends emails based on the data read in the queue
Email worker uses a number of projects and dependencies to work properly:
Clone this repository into your local directory, Use the commands below:
# clone project to a computer
git clone https://github.com/Kuunika/dhis2-email-worker.git
# navigate to the project root directory
cd dhis2-email-worker
Install all the dependencies
# install dependencies
npm install
Create a .env
file with the contents of your .env.default file.
# copy the .env.example to .env file
cp .env.default .env
Modify the .env
file and make sure it reflects the environment settings.
# start the worker
npm start