1.0.2 • Published 5 years ago

dem-polls-screenshots v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

npm.io

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