Skip to content

Kotlin / Spring Boot / GraphQL / PostgreSQL Boilerplate

License

Notifications You must be signed in to change notification settings

cjlynch12/kotlingql

Repository files navigation

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

About

Kotlin / Spring Boot / GraphQL / PostgreSQL Boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages