How kaihendry/ltabus works
Project type and purpose
• This is a serverless, full-stack web application (“Singapore bus arrival Web application”) written in Go.
• It serves a static single-page frontend (HTML/CSS/JS) and a Go-based backend function that proxies requests to the MyTransport DataMall bus‐arrival API.
File structure
• Top-level Go files:
• main.go: entry point for the serverless function or local HTTP server
• busstops_test.go: unit tests for bus-stop related code
• allthebusstops.sh: shell script to generate static/all.json
• static/: contains the SPA assets
• index.html, app.js, app.css, lite.css, all.json
• template.yml: AWS SAM template defining the Lambda function, API Gateway, and any IAM roles
• .github/workflows/*.yml: GitHub Actions pipelines (SAM build & deploy, SLOC checks, weekly data updates)
• Makefile: common dev tasks (build, test, package)
• go.mod/go.sum: Go modules
README
• Confirms it’s a Web application for bus-arrival times
• Requires a DataMall API account key
• Mentions related open-source projects for inspiration
• No dedicated database—relies on a third-party REST API
Elements
– Blue for AWS-managed services
– Green for your code/components
– Orange for external third-party APIs
• Related resources in a “VPC” or AWS “region” boundary if desired