Simple TODO application written in Quarkus:
- API endpoints driven by AWS Lambdas
- TODO items storage - AWS DynamoDB
Enjoy !
- Graalvm = 19.3.1
- Serverless framework >= 1.56.1
- AWS account
mvn clean package & mvn package -Dnative-lambda=true
It will take some time....
-
Deploy to AWS
sls deploy -v
-
Find out your API endoints
sls info
-
Add Todo item
-
Using Native lambda
curl -XPOST -H 'Content-Type: application/json' -d '' https://<apiid>.execute-api.<region>.amazonaws.com/dev/addNative
-
Using JVM lambda
curl -XPOST -H 'Content-Type: application/json' -d '' https://<apiid>.execute-api.<region>.amazonaws.com/dev/addjvm
- Get all TODOs
-
Using native lambda
curl https://<apiid>.execute-api.<region>.amazonaws.com/dev/fetchNative
-
Using JVM lambda
curl https://<apiid>.execute-api.<region>.amazonaws.com/dev/fetchJvm
- Don't forget to cleanup your AWS account if not using
sls remove