This stack allows a user to login directly via email without any need for a pasword. This uses Cognito for authentication along with Lambda triggers. Here's the blog post for the same.
The cdk.json
file tells the CDK Toolkit how to execute your app.
- Install dependencies using
yarn
- Rename
.example.env
to.env
inpackages/backend
and replace the value inSES_FROM_ADDRESS
to your verified email address in SES - Rename
.example.env
to.env
inpackages/frontend
and replace the value inAWS_REGION
to the region your stack is deployed to. Default isus-east-2
yarn workspace backend build
compile typescript to jsyarn workspace backend watch
watch for changes and compileyarn workspace backend test
perform the jest unit testsyarn workspace backend cdk deploy
deploy this stack to your default AWS account/regionyarn workspace backend cdk diff
compare deployed stack with current stateyarn workspace backend cdk synth
emits the synthesized CloudFormation template
yarn workspace frontend dev
starts the dev server on http://localhost:3000yarn workspace frontend build
builds the app for production to thebuild
folderyarn workspace frontend test
launches the test runner in the interactive watch mode