dem-polls-screenshots

## Development docs

Usage no npm install needed!

<script type="module">
  import demPollsScreenshots from 'https://cdn.skypack.dev/dem-polls-screenshots';
</script>

README

lambda_2020-mc-polls-bakery

Development docs

Lambda environment

Once you deploy your Lambda instance, make sure you set these variables in its environment.

AWS_PUBLISH_ACCESS_KEY_ID=
AWS_PUBLISH_SECRET_ACCESS_KEY=
AWS_BUCKET_NAME=
AWS_CLOUDFRONT_DISTRIBUTION=
API_VERIFICATION_TOKEN=

The variable LAMBDA should already be set.

Testing

To test, create a file named dev/test/.env using the .env.example in that folder as an example, and fill in the environment variables.

Now run:

$ yarn build
$ yarn test