Skip to content

wimagguc/node-serverless-reports

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Dependencies

Make sure you have:

  1. The Serverless Framework installed,

  2. Node.js v12.0+.

  3. An Amazon AWS account (as described by the Serverless Framework)

Install

  1. Install project dependencies:

    $ yarn install
    
  2. Set up all environment variables:

    You have to include your database and sendmail provider's details. Look into serverless.yml to see which variables you need to set.

  3. Deploy the function and the /email endpoint:

    Deploy it to AWS Lambda:

    $ sls deploy
    

    To remove a deployed Lambda, call:

    $ sls remove
    

License

MIT, do-with-the-code-whatever-you-please License

And as always, feel free to contribute!

About

Richard Dancsi

About

A Serverless - Node.js project to create reports from database queries, and send those reports out in pretty emails. Motivation:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published