Simple back end boiler plate for a Spring Boot/GraphQL Web server written in Kotlin.
- Add basic tests
- Create
application.yml
in the /src/resources dir with following:
graphql:
packages:
- "com.clynch.kotlingql"
spring:
datasource:
url: jdbc:postgresql://localhost:5432/kotlingql
username: <username>
password: <password>
driverClassName: "org.postgresql.Driver"
- Interact with GraphQL queries and migrations from
http://localhost:8080/playground
Migrations are handled by flyway.
Simply create a new file in /resources/migration
like V1__init.sql
and flyway will apply the migration on application boot.