description |
---|
Turing Example - CAPTCHA-based token faucet |
Inside the folder, run yarn install
. You will also need Docker.
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,
$ brew tap aws/tap
$ brew install aws-sam-cli
This assumes you have python-lambda-local
installed. If not, install it via pip3 install python-lambda-local
.
$ yarn start:lambda
If everything is working correctly, you will see:
{'statusCode': 200, 'body': '{"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001"}'}
$ yarn start:lambda-sam
This will build and run the server image. It will ingest example inputs, as above.