Daily Email Reports
A Serverless - Node.js project to create html reports from database queries, and send those reports out in pretty emails.
Using AWS Lambda, you can then schedule this super-lightweight reporting app, to send out a daily email about new signups, basic usage etc.
Make sure you have:
The Serverless Framework installed,
An Amazon AWS account (as described by the Serverless Framework)
Install project dependencies:
$ yarn install
Set up all environment variables:
You have to include your database and sendmail provider's details. Look into
serverless.ymlto see which variables you need to set.
Deploy the function and the /email endpoint:
Deploy it to AWS Lambda:
$ sls deploy
To remove a deployed Lambda, call:
$ sls remove
MIT, do-with-the-code-whatever-you-please License
And as always, feel free to contribute!
- Blog: wimagguc.com
- Twitter: twitter.com/wimagguc
- Linkedin: linkedin.com/in/richarddancsi