This project contains an AWS Lambda function that processes emails from Google Business Center and extracts review information. It's designed to automatically handle incoming review notifications and store the relevant data.
google-review-email-processor/: Main directory for the Lambda functionsrc/: Source code for the Lambda functiontests/: Test files and fixturesscripts/: Build and scripts
npm test: Run testsnpm run lint: Lint codenpm run lint:fix: Lint and auto-fix issuesnpm run format: Format code with Prettiernpm run build: Create deployment packagenpm run deploy: Lint, test, and build
The project uses Terraform to manage the AWS infrastructure. Key components include:
- S3 bucket for storing incoming emails
- SES receipt rule for handling incoming emails
- Lambda function for processing emails
For more details on the infrastructure, refer to the main.tf file.
terraform init
terraform apply- The project uses ESLint for linting and Prettier for code formatting.
- Pre-commit hooks are set up to ensure code quality before committing.
The project includes test fixtures for valid and invalid email formats. To run tests:
npm test