This module provides a local setup for DynamoDB using LocalStack and a Spring Boot configuration for seamless integration. It ensures data persistence and includes a DynamoDB Web Admin UI for easy database management.
- Docker Compose
- Create .env file from example
- AWS CLI (Configure with .env examples)
make start
make dynamodb-upAccess the DynamoDB Web Admin UI at: http://localhost:8001
All data is persisted in the volume directory.
make stopcurl --location 'http://localhost:8080/api/comment/create' \
--header 'Content-Type: application/json' \
--data '{
"postId": "01",
"text": "This is 01 my comment",
"author": "tester"
}'
curl --location 'http://localhost:8080/api/comment/getAllComments'
curl --location 'http://localhost:8080/api/comment/getByCommentId?commentId=?' \
--data ''
curl --location 'http://localhost:8080/api/comment/getCommentsByPostId?postId=?' \
--data ''
curl --location --request PUT 'http://localhost:8080/api/comment/update?commentId=?' \
--header 'Content-Type: application/json' \
--data '{
"postId": "01",
"text": "this is 02 my comment",
"author": "tester"
}'
curl --location --request DELETE 'http://localhost:8080/api/comment/deleteByCommentId?commentId=?' \
--header 'Content-Type: application/json' \
--data ''