All Projects → hantsy → spring-graphql-sample

hantsy / spring-graphql-sample

Licence: GPL-3.0 license
Spring GraphQL examples using Netflix DGS, GraphQL Java and Spring GraphQL

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects
typescript
32286 projects

Projects that are alternatives of or similar to spring-graphql-sample

Graphql Java
GraphQL Java implementation
Stars: ✭ 5,330 (+7855.22%)
Mutual labels:  graphql-java
test-graphql-java
Easy Graphql Testing in Java
Stars: ✭ 22 (-67.16%)
Mutual labels:  graphql-java
graphql-starwars-kotlin
GraphQL Server implemented in Kotlin.
Stars: ✭ 31 (-53.73%)
Mutual labels:  graphql-java
membership
Membership service (to demonstrate graphQL)
Stars: ✭ 19 (-71.64%)
Mutual labels:  graphql-java
graphql-java-codegen
Make your GraphQL Java application schema-driven.
Stars: ✭ 167 (+149.25%)
Mutual labels:  graphql-java
graphql-java-codegen-gradle-plugin
Gradle plugin for graphql-java-codegen
Stars: ✭ 19 (-71.64%)
Mutual labels:  graphql-java
vertx-graphql-example
Vert.x Server which exposes a GraphQL API
Stars: ✭ 29 (-56.72%)
Mutual labels:  graphql-java
graphql-filter-java
This project is developed to help developers add filtering support to their graphql-java services
Stars: ✭ 52 (-22.39%)
Mutual labels:  graphql-java
e-shop
Sample Spring Cloud microservices e-shop.
Stars: ✭ 48 (-28.36%)
Mutual labels:  netflix-dgs

spring-graphql-sample

Spring GraphQL examples using the following frameworks and libraries:

Other GraphQL Java integration examples with Java frameworks.

Guide

TBD

Example Codes

Example name Description
dgs Simple Netflix DGS example
dgs-webflux Simple Netflix DGS example with Spring WebFlux
dgs-subscription-ws Simple Netflix DGS Subscription example using WebSocket protocol
dgs-subscription-ui Angular Client app for dgs-subscription-ws
dgs-subscription-sse Simple Netflix DGS Subscription example using Http/SSE protocol
dgs-codegen Netflix DGS example with Spring Jdbc and Gradle codegen plugin
dgs-fileupload Netflix DGS file upload example
dgs-client Netflix DGS Typesafe Client example
dgs-kotlin-co A complete Netflix DGS example with WebFlux, Kotlin Coroutines, Spring Data R2dbc and Spring Security
dgs-kotlin A complete Netflix DGS example with WebMvc/Kotlin, Spring Data Jdbc, Spring Security and Spring Session/Spring Data Redis
graphql-java GraphQL Java vanilla Spring Boot example
graphql-kotlin ExpediaGroup Graphql Kotlin Spring Boot example
graphql-java-kickstart GraphQL Java Kickstart Spring Boot example
graphql-java-kickstart-webclient GraphQL Java Kickstart Spring WebClient example
graphql-java-kickstart-annotations GraphQL Java Kickstart Spring Boot example(Code first)
graphql-spqr GraphQL SPQR Spring example
spring-graphql Spring GraphQL example
spring-graphql-webmvc Spring GraphQL with WebMvc Controller annotation example
spring-graphql-querydsl Spring GraphQL/JPA/QueryDSl Data Fetchers example
spring-graphql-webflux Spring GraphQL/WebFlux example with WebSocket transport protocol
spring-graphql-rsocket-kotlin-co Spring GraphQL/WebFlux/Kotlin Coroutines example with RSocket transport protocol

Prerequisites

Make sure you have installed the following software.

  • Java 17
  • Apache Maven 3.8.x / Gradle 7.x
  • Docker

Some sample codes are written in Kotlin. If you are new to Kotlin, start to learn it from the the Kotlin homepage.

Build

Clone the source codes from Github.

git clone https://github.com/hantsy/spring-graphql-sample/

Open a terminal, and switch to the root folder of the project, and run the following command to build the whole project.

docker-compose up postgres // start up a postgres it is required
cd examplename // change to the example folder
mvn clean install // build the project
//or
./gradlew build

Run the application.

mvn spring-boot:run 
//or 
./gradlew bootRun
// or from command line after building
java -jar target/xxx.jar

Contribution

Any suggestions are welcome, filing an issue or submitting a PR is also highly recommended.

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].