# songwhip-email

A service for sending emails with AWS SES. If sending an email fails because of a rate-limit error, the email will be queued using songwhip-queue to be retried later.

The service is deployed to [Vercel Edge Functions](https://vercel.com/docs/functions/edge-functions) which runs on a limited Javascript runtime.

## Prerequisites

- Node.js configured repo\
  https://www.notion.so/Node-js-project-setup-guide-86feadffeb304962b06e6b1bb8f09213
- Vercel CLI (for `yarn dev`)

## Running

- Create a `.env` file based on the `.env.shadow` template
- Run `yarn dev` to start a Vercel dev server

## Testing

- Run `yarn test` to check for format, lint or types errors
