Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.13 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.13 KB
description
Turing Example - CAPTCHA-based token faucet

Basics

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,

$ brew tap aws/tap
$ brew install aws-sam-cli

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.

$ yarn start:lambda

If everything is working correctly, you will see:

{'statusCode': 200, 'body': '{"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001"}'}

2. Local testing of the example SAM deployment

$ yarn start:lambda-sam

This will build and run the server image. It will ingest example inputs, as above.