houseqr: serverless QR generator for house URLs
Satyam Tiwary edited this page Sep 29, 2022
·
1 revision
API Endpoint:
https://api.vvplus.cc/houseqr
A simple node.js
serverless service intended for the AWS lambda platform.
-
The service accepts a UUID, which in practical usage signifies the unique identifier for a particular house
-
The service accepts a house UUID.
-
responds with a fixed-size image containing a QR code.
The QR code encodes the URL
to the s3-hosted QR code image file.
graph LR
U([User]) ---> | getqr/UUID | A[API Gateway]
A --> | UUID | C{Is QR already in S3?}
subgraph L[AWS Lambda]
C --> |yes| I[Respond with Image URL]
C --> |no| G[Generate QR Image]
G --> S[Store in S3]
S --> I
end
I ---> | image file | U
- Key Reference: Very similar project
- Building Lambdas with Turborepo using Serverless Framework (we'll see how this goes)
- Probably use this library: qrcode
- Error correction level must be High