Skip to content

russau/chalice-recaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get a chalice app validating a reCAPTCHA test.

Sign up for an API key. After you deploy you'll need to come back here an update the domains. For now just add localhost as a domain.

The application expects environment variables RECAPTCHA_SITE_KEY and RECAPTCHA_SECREY_KEY. You can set these in .chalice/config.json. Is there a better way to externalize these so I don't check them into git?

pip3 install -r requirements.txt
chalice local

You can play with the site locally. Then chalice deploy, get the domain from API gateway, e.g. 1234567890.execute-api.us-east-1.amazonaws.com, add this to the domains in your reCAPTCHA settings.