Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aenesgur/graphql-java-spring-boot-project

It is GraphQL boilerplate project developed on Java Spring Boot. PostgreSQL used as a database on Docker
https://github.com/aenesgur/graphql-java-spring-boot-project

docker graphql graphql-schema-language hibernate-jpa java pagination playground postgresql spring-boot voyager

Last synced: 9 days ago
JSON representation

It is GraphQL boilerplate project developed on Java Spring Boot. PostgreSQL used as a database on Docker

Awesome Lists containing this project

README

        

# Sample Java Spring Boot Project with GraphQL and PostgreSQL
It is GraphQL boilerplate project developed on Java Spring Boot. There is a small scenario based on the Real Estate industry.
There are two fields as Listing and Trade Type. While a listing will have only one Trade Type, a Trade Type may have more than one Listing. It has a One to Many relationship.
Within the scope of the project, PostgreSQL which is running on Docker, used for database.
Code First approach preffered.

* Medium url: https://medium.com/emlakjet/integration-and-using-graphql-on-a-java-spring-boot-project-899f4c4edc53

* run the "docker-compose up -d" command in the "resources" folder and then run the application.
* Playground url: http://localhost:8010/playground

### Example queries on playground
Screen Shot 2021-03-07 at 23 03 49
Screen Shot 2021-03-07 at 23 04 31
Screen Shot 2021-03-07 at 23 05 22
Screen Shot 2021-03-07 at 23 12 19
Screen Shot 2021-03-07 at 23 12 36
Screen Shot 2021-03-07 at 23 18 07
Screen Shot 2021-03-07 at 23 19 23
Screen Shot 2021-03-07 at 23 20 58
Screen Shot 2021-03-07 at 23 21 49

* Voyager extension added, test it with: http://localhost:8010/voyager
![image](https://user-images.githubusercontent.com/47754791/110254628-f9f4d880-7fa0-11eb-8e50-bd257243432c.png)