Skip to content

Latest commit

 

History

History
executable file
·
36 lines (29 loc) · 1.16 KB

README.md

File metadata and controls

executable file
·
36 lines (29 loc) · 1.16 KB

Kotlin-Spring-GrapqhQL Boilerplate

About

Simple back end boiler plate for a Spring Boot/GraphQL Web server written in Kotlin.

Todo:

  • Add basic tests

Setup

Environment Variables

  • 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"

GraphQL playground

  • Interact with GraphQL queries and migrations from http://localhost:8080/playground

DB Migrations

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.

Reference Documentation