This is a simple backend API for a list app, written in Java11.
Follow the Stackery Quickstart to learn to use Stackery while writing this application.
The following are descriptions of the Stackery resources we'll be working with:
-
Rest API : An API Gateway with GET and POST endpoints
-
Function : Two Lambda functions will POST and GET items to and from the table
-
Table : A DynamoDB table that will store our items
The application architecture is defined in the template.yaml
, a Serverless Application Model (SAM) template which can be managed through the Stackery Dashboard at app.stackery.io.
Here is an overview of the files:
.
βββ README.md <-- This README file
βββ src <-- Source code dir for all AWS Lambda functions
βΒ Β βββ getItems <-- Source code dir for getItems function
β β βββ src
β β βΒ Β βββ main
β β βΒ Β Β Β βββHandler.java <-- Lambda function code
βΒ Β βΒ Β βββ README.md <-- Function-specific README
βΒ Β βΒ Β βββ build.gradle <-- Java dependencies
βΒ Β βΒ Β βββ .stackery-config.yaml <-- Stackery function configuration file
βΒ Β βββ newItem <-- Source code dir for newItem function
β β βββ src
β β βΒ Β βββ main
β β βΒ Β Β Β βββHandler.java <-- Lambda function code
βΒ Β βΒ Β βββ README.md <-- Function-specific README
βΒ Β βΒ Β βββ build.gradle <-- Java dependencies
βΒ Β βΒ Β βββ.stackery-config.yaml <-- Stackery function configuration file
βββ template.yaml <-- SAM infrastructure-as-code template
βββ.stackery-config.yaml <-- Stackery stack configuration file