This repository contains the application templates.
This repo currently only contains a template for AWS SAM in golang.
Template has a basic handler HelloWorld under /handlers/HelloWorldV1
accessible under /v1/hello-world
Template has an API Gateway included that points to (test-/staging-)[project_name] upon deployment
Template has a basic setup of OpenAPI documentation
Template has a basic Makefile setup that I've tried executing while making the template
Execute this makefile command for local development
$ make dev
Execute this makefile command to deploy project
$ make deploy ENV=test
Template has a ready github actions that can deploy already, just adjust depending on your projects needs.
Template implements air for live-reloading, this works in the background
Execute this makefile command for local development with air live-reloading
$ make dev-watch
Template already has a ready endpoint for our Booky auth under AllEndpoints handler
Creates an endpoint (BOOKY endpoint list) for /endpoints endpoint to read. Uses docs/api_contract.yaml
to generate list of endpoints
Reads from (env-)[project_name](by default) in AWS Secrets Manager and creates a file .secrets.json
Reads .secrets.json (by default) and creates a parameter-override string for sam deploy
or sam local start-api`
Since SAM can't have multiple template yet in one repo as of this writing, I opted to put this under root so it can work this way for now aws/aws-sam-cli#3555.
We welcome issue reports and pull requests to help improve these application templates.