This repository created for a task. Spring Framework used based Java 19 with Maven. GraphQL implemented for query manipulation. Docker and docker-compose used for containerization.
You have to install docker and docker-compose if you want use with container:
docker-compose up --build
Without docker:
Firstly, you have to run a postgresql db and should change db url from application.properties
jdbc:postgresql://db:5432/players
jdbc:postgresql://localhost:5432/players
mvn clean install
mvn spring-boot:run
5432
is default Postgres Port
8080
is default Spring Boot App Port
So, GraphiQL enabled and you can reach from /graphiql?path=/graphql
Example: http://localhost:8080/graphiql?path=/graphql
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring for GraphQL
- Spring Data JPA
The following guides illustrate how to use some features concretely: