Skip to content

Send User Engagement with AWS Lambda, SendGrid, BadgeUp and Node.js

License

Notifications You must be signed in to change notification settings

BadgeUp/badgeup-serverless-email-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BadgeUp Achievement Emails Demo

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.

Email Template

The email template in the email-template sub-directory was built with Foundation for Emails.

Development

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.

Deployment

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'

About

Send User Engagement with AWS Lambda, SendGrid, BadgeUp and Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published