I implemented the credit card validator case study application using the following:
- React + MUI for the frontend/ui
- tRPC for the API
It can be ran locally or deployed to AWS using CDK
yarn install
cd cdk
npm install
It can be ran locally by running the individual UI / API:
yarn ui:dev &
yarn api:dev
Place credentials in a creds.json
file under cdk/scripts
that looks like:
{
"accessKeyId": "",
"secretAccessKey": "",
"region": "us-west-2"
}
Update the account id in cdk/bin/cdk.ts
to the AWS account id you are deploying to.
First build the UI/API
yarn api:build
yarn ui:build
Then run the CDK deployment
cd cdk
npm run cdk "deploy --require-approval never"