git clone ...
cd mailing-microservice
npm run install
cp .env.example .env
vim .env
- Fill in the value of the environment
npm run dev
OR if havepm2
installed globally then runpm2 start server.ts
-
This microservice following message Queue principle
-
We have two sources of the emails -- 1.APIs --.Events
-
The above two email sources will add the email content( body, recipients) into the queue, and a message will be populated to the end user tells him that system is processing his email.