Turing KYC
Turing Example - CAPTCHA-based token faucet
Inside the folder, run yarn install. You will also need Docker.

0. Make sure that your have AWS SAM installed.

You can find instructions here. Assuming you have the AWS CLI and have everything set up correctly, installing SAM should just take two commands. On a Mac with homebrew, for example,
1
$ brew tap aws/tap
2
$ brew install aws-sam-cli
Copied!

1. Local testing of the example server

This assumes you have python-lambda-local installed. If not, install it via pip3 install python-lambda-local.
1
$ yarn start:lambda
Copied!
If everything is working correctly, you will see:
1
{'statusCode': 200, 'body': '{"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001"}'}
Copied!

2. Local testing of the example SAM deployment

1
$ yarn start:lambda-sam
Copied!
This will build and run the server image. It will ingest example inputs, as above.