How calTrack works
Architecture and AWS services.
BrowserWeb app
→
Route 53Custom domain
→
EC2Node.js + Express
S3Meal photos
GeminiVision AI
DynamoDBAccounts, meals & profile
1
Upload
The browser gets a pre-signed URL from EC2 and uploads the photo directly to S3.
2
Analyze
EC2 reads the photo from S3 and sends it to Gemini Vision, which returns foods, calories and macros.
3
Store
The result is saved in DynamoDB (partition key userId, sort key createdAt).