Skip to content

Sample Spring Boot application that exposes a REST API for theme park rides

Notifications You must be signed in to change notification settings

Black742/spring-boot-api-example

 
 

Repository files navigation

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 (see article)

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> -Pregion=<your-region>

Deleting AWS deployment

./gradlew awsCfnDeleteStack awsCfnWaitStackComplete

About

Sample Spring Boot application that exposes a REST API for theme park rides

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.4%
  • Dockerfile 1.6%