This is a simple demo application for using LocalStack.
- Docker
- Java 8+
- Start LocalStack by running
docker-compose upin thelocalstackdirectory. - Start the application by running
./mvnw spring-boot:runor by running theLocalStackDemoApplicationin your IDE.
- Access the app through
localhost:8080. - View buckets through
localhost:8080/buckets. - Send a test e-mail through
localhost:8080/emails.
LocalStack is set up in the localstack directory.
- The
docker-compose.ymlfile defines which services we want to run, and some other Docker configuration. - The
localstack/binfolder contains the shell scripts that we want to be executed when LocalStack has started. We can use this to set up our services. - The
localstack/datafolder contains the recorded API calls, which LocalStack will re-run upon startup, so that our changes are persisted.
- The
S3Servicehas methods for finding available buckets, and theEmailServicefor sending e-mails. - Requests are served by the
LocalStackController.