Skip to content

Sample Spring Boot application that exposes a REST API for theme park rides. Accompanies "Building a Spring Boot application in Jenkins" video and article.

Notifications You must be signed in to change notification settings

faisikhan/gradle

 
 

Repository files navigation

  1. Gradle is a build automation tool is used to automate the creation of applications.
  2. Gradle is popular to provide high-speed performance, nearly twice as fast as Maven.
  3. A build script is known as build.gradle and is located in the root directory of the project.
  4. Gradlew is a gradle wrapper for gradle command.
  5. gradlew is a wrapper(w - character) that uses gradle.
  6. gradle-wrapper.properties contain the gradle wrapper configuration information

Testing Gradle

./gradlew test

Building (no tests)

./gradlew assemble

Building (with tests)

./gradlew build

Running in Docker

./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

Using API

  • get all rides - GET /ride to get a list of all the rides
  • get specific ride - GET /ride/${id} to get a specific ride
  • create ride - POST JSON to /ride to create a new ride (see article for full details)

About

Sample Spring Boot application that exposes a REST API for theme park rides. Accompanies "Building a Spring Boot application in Jenkins" video and article.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 99.7%
  • Dockerfile 0.3%