Use AWS Lambda, SendGrid and BageUp Webhooks to send earned achievement emails.
Please read our article on Medium and see the BadgeUp Webhook documentation for more information on setting up webhooks and the JSON payload.
The email template in the email-template
sub-directory was built with Foundation for Emails.
To get started, ensure you are running Node.js 8+. Install dependencies with:
npm install
The email-template
sub-directory has its own README instructions to modify/build the email template.
You may need to add --profile
and --region
to the aws lambda
command depending on your local setup.
npm ci && \
zip -rq lambda.zip * -x '.git' && \
aws lambda update-function-code \
--function-name 'achievement-email-script' \
--zip-file 'fileb://lambda.zip'