Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 866 Bytes

README.md

File metadata and controls

35 lines (19 loc) · 866 Bytes

Overview

An example project to demonstrate:

  • how to create a Spring Boot REST API (see article)
  • how to run Spring Boot in Docker and publish to Docker Hub (see article)
  • how to deploy the Spring Boot application to AWS with CloudFormation

Testing

./gradlew test

Building (no tests)

./gradlew assemble

Building (with tests)

./gradlew build

Running in Docker (Docker installation expected)

./gradlew assemble docker dockerRun

Stopping Docker container

./gradlew dockerStop

Deploying to AWS

./gradlew awsCfnMigrateStack awsCfnWaitStackComplete -PsubnetId=<your-subnet-id>

Deleting AWS deployment

./gradlew awsCfnDeleteStack awsCfnWaitStackComplete