This sample app provides a (very useful) single button that will tell you: "Yes" or "No".
All-Javascript stack:
- React front end hosted on S3 and served via Cloudfront
- Node.js serverless back end provided by Lambda
- Javascript IaC provided by AWS CDK
- Fast local development workflow with live front end reload, fast Lambda code updates and streaming logs
- Install project:
npm install - Install CDK:
npm install -g aws-cdk - Run
cdk deploy --watch. This will watch thelambdafolder for changes and update the code in Lambda. It will also stream Lambda logs in real time. - After deployment is done, copy the
FunctionURLoutput intofront-end/config.jsonto associate your local React app to the Lambda back end URL. - On a separate terminal,
cd front-endthennpm startto start up a front end server with live reload.