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.
- Clone this repository and run
npm i
. - Create a .env file with API keys for DynamoDB. Store in root directory.
- Create a project in Google's Developer Console with Gmail enabled to retrieve a credentials file
credentials.json
. Store in root directory. - Run locally once with
node .
, which will generatetoken.json
after you authenticate with your Gmail account. - Upload to AWS Lambda.
- Written in Node.js.
- Unit testing in Jest.
- Hosted on AWS Lambda.
- Stores API data in AWS DynamoDB.