About
This is a library to read a configured topic(s), get email templates form S3 bucket and send emails to customers.
Build Instructions
Get the sindric-lib-email-notifier project from Git CodeCommit
cd sindric-lib-email-notifier
npm install
tsc -p .
npm login (if required...)
npm publish
Usage
-
get the email-notifier project from Git CodeCommit
cd email-notifier
npm install
npm i sindric-lib-email-notifier
-
Verify index.ts file to have one of the following code snippet but not both.
a) For Pre-Registration
import { preRegistrationEmailNotifier } from "sindric-lib-email-notifier";
preRegistrationEmailNotifier();
b) Otherwise
import { emailNotifier } from "sindric-lib-email-notifier";
emailNotifier();
-
Run it using the PM2 process. (startup.sh, ecosystem.config.cjs ...etc)
run command: ./startup.sh <environement> <platform> <sub-platform>
ex, ./startup.sh development mercury kansas