Skip to content

Scheduled lambda to collect email stats via Google's Gmail API. Written in Node.js.

Notifications You must be signed in to change notification settings

micahtyong/email-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Stats

Scheduled lambda to collect basic email stats via Google's Gmail API. This repository can be used as a template for backend tasks that 1) communicate with an external source via API (e.g. gmail, twitter), and 2) stores data in a backend with basic CRUD functions set up.

See frontend client here.

Getting Started

  1. Clone this repository and run npm i.
  2. Create a .env file with API keys for DynamoDB. Store in root directory.
  3. Create a project in Google's Developer Console with Gmail enabled to retrieve a credentials file credentials.json. Store in root directory.
  4. Run locally once with node ., which will generate token.json after you authenticate with your Gmail account.
  5. Upload to AWS Lambda.

Technology

  • Written in Node.js.
  • Unit testing in Jest.
  • Hosted on AWS Lambda.
  • Stores API data in AWS DynamoDB.

About

Scheduled lambda to collect email stats via Google's Gmail API. Written in Node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published