This is a AWS CDK application sample of Lambda and API Gateway. This application can generate QRCode.
- AWS account
- Node.js (> 10.x) and Yarn
$ clone https://github.com/HeRoMo/qrcode-generator.git
$ cd qrcode-generator
$ yarn install
$ yarn build
$ yarn cdk deploy
After deploy, yout API endpoint is output to console.
Access the following URL.
https://<your-api-endpoint>/?txt=<string-what-you-want-to-encode>
This API returns a QRCode that is encoded txt
parameter as SVG image.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template