Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 966 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 966 Bytes

Hello City Example App

Simple sample CRUD API for getting, adding and deleting cities. Supports REST and graphQL. Main technologies: Kotlin, Gradle, Spring Boot, Google Cloud Run

Develop

./gradlew bootRun

Example query

Get All cities

Rest: GET localhost:8080/api/city

GraphQL: POST localhost:8080/graphql

query GetCities {
    cities {
        id
        name
        description
    }
}

Production build

./gradlew build
java -jar build/libs/<appname>-<version>.jar --args="--spring.profiles.active=production"

Replace <appname> with your application name (usually the value of rootProject.Name in settings.gradle.kts) and <version> with version (usually the value of version in build.gradle.kts).