Home

Awesome

less

Simple Go serverless website on Amazon Web Services (AWS).
Demo: https://6epko5iya8.execute-api.ap-southeast-1.amazonaws.com/dev.

Website's frontend is written in VueJS, which stored on a public AWS S3 bucket.
There're two simple AWS Lambdas written in Go (deployed via apex with NodeJS shim runtime):

API Gateway serves two APIs, one to GET the index.html page on S3 bucket (forward/proxy request to the URL of index.html file on S3). The other allows client to lookup Gihub trending repositories by day (which calling the less_caterer lambda).

Architecture

This repo contains the code for Lambda and S3 parts in the image below.
Architecture

Deploy on AWS

Local development

You have to install Go SDK, glide, AWS CLI, apex and configure the AWS credential to deploy your functions on AWS Lambda.

Lambdas

Frontend and S3

CloudWatch

DynamoDB

API Gateway

Open browser and follow the link to the GET / API, you now have a simple serverless website up and running on AWS. Congrats :)

less

License

This project is under the MIT License. See the LICENSE file for the full license text.