Skip to content

haraldvinje/hello-city

Repository files navigation

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

About

Example app with Spring and Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published