# Lambda Function for Parsing Email
## Deploying

* Make sure your `~/.aws/credentials` file is populated with your `aws-access-key` and `aws-access-secret`
* Copy `config.shadow.json` file to `config.json`
* Fill in all values in `config.json`
* For gmail address used, log in online, and allow [Less Secure Apps](https://www.google.com/settings/security/lesssecureapps)
* Run `npm install`
* Run `gulp`


## Running on the fly
* Make sure your `~/.aws/credentials` file is populated with your `aws-access-key` and `aws-access-secret`
* Copy `config.shadow.json` file to `config.json`
* Fill in all values in `config.json`
* For gmail address used, log in online, and allow [Less Secure Apps](https://www.google.com/settings/security/lesssecureapps)
* Run `npm install` from `lambda` directory
* Run `node index.js` from `lambda` directory
