To get started with the service you need to have credentials.json and token.json in root of your account.
You can generate it by following the procedure https://developers.google.com/gmail/api/quickstart/nodejs
Once you obtain credentials.json and token.json and ensuring you have node installed in your system.
npm i
node index.js
- Things to save to db - time, sender, and freetext subject line