This project has been developed to demonstrate how to build a simple GraphQL API server with Spring Boot, Spring Data JPA, Gradle, Kotlin, Liquibase and PostgreSQL.
- Java
8
- Gradle
7.0.2
- Spring Boot
2.5.0
- Spring Data JPA
1.5.10
- Kotlin
1.5.10
- Liquibase
4.4.0
- PostgreSQL
42.2.0
Create graphql_kotlin
database in PostgreSQL:
CREATE DATABASE graphql_kotlin;
Create graphql_kotlin
schema in PostgreSQL:
CREATE SCHEMA IF NOT EXISTS graphql_kotlin;
Activate dev
profile using environment variable:
export SPRING_ENV=dev
Runs this project as a Spring Boot application:
gradle bootRun
Assembles this project:
gradle build -x test
Run tests this project:
gradle test
Deletes the build directory:
gradle clean
- GraphQL: https://graphql.org/learn/
- Website: https://eduardo-rdguez.github.io/
- Twitter: @_eduardguez
- Github: @eduardo-rdguez
Copyright © 2021 Eduardo Rodríguez.
This project is MIT licensed.