• Stars
    star
    210
  • Rank 187,585 (Top 4 %)
  • Language
    Java
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample GraphQL server implemented with graphql-java and Spring Boot

graphql-java-spring-boot-example

Sample app for my tutorial Building a GraphQL Server with Spring Boot.

Updated by @Ansonator to recent versions of Spring Boot and GraphQL Java.

The tutorial branch contains the original demo app.

You'll need Java 11 or 17.

Clone this repo and execute mvnw spring-boot:run. Or inside an IDE, execute the class com.example.DemoGraphQL.DemoGraphQlApplication.

To access the database, you can go to http://localhost:8080/h2-console/login.jsp and enter the following information:

  • JDBC URL: jdbc:h2:mem:testdb
  • User Name: sa
  • Password:

Or go to http://localhost:8080/graphiql to start executing queries. For example:

{
  findAllBooks {
    id
    isbn
    title
    pageCount
    author {
      firstName
      lastName
    }
  }
}

Or:

mutation {
  newBook(
    title: "Java: The Complete Reference, Tenth Edition", 
    isbn: "1259589331", 
    author: 1) {
      id title
  }
}

Extras

This build demos some UIs hosted at graphql-java-kickstart.

License

MIT

More Repositories

1

ocpj8-book

Study guide for the Oracle Certified Professional, Java SE 8 Programmer Exam (1Z0-809)
HTML
131
star
2

ARKitGameSpriteKit

A game inspired by Pokemon Go build with ARKit and SpriteKit
Swift
92
star
3

ARKitAnimation

Animating a 3D model in AR with ARKit and Mixamo
Swift
84
star
4

minitwit

Based on Flask's MiniTwit example and written in Java with the Spark web framework, Spring, and HSQLDB
Java
83
star
5

earth-moon-vr

A simple app using React VR
JavaScript
65
star
6

realtime-mongodb-pusher

Sample app that shows how to use MongoDB change streams and Pusher in a Node.js/React app
JavaScript
58
star
7

ARKitSceneKitExample

Simple AR app made with ARKit and SceneKit
Swift
56
star
8

react-rxdb-example

Anonymous chat app built with React, RxDB and PouchDB that works offline.
JavaScript
41
star
9

ocpj8-notes

Notes to study for the OCPJ 8 exam (1Z1-809)
36
star
10

react-virtualized-examples

Examples that show how to use some react-virtualized components
JavaScript
34
star
11

kotlin-pusher-chat

Basic Android chat app made with Kotlin and Pusher
Kotlin
31
star
12

react-app-frontend

Simple React/Redux app that acts as the front-end of a CRUD REST API
JavaScript
25
star
13

shopping-cart-pusher

Realtime shopping cart using Pusher
Java
21
star
14

MeasureARKitPusher

Simple measure AR app made with ARKit. It sends the measures to Pusher so they can be consumed by other apps in realtime.
Swift
21
star
15

react-horizon

An example application that shows how to integrate React, React Router, and Horizon.io with OAuth authentication
JavaScript
19
star
16

reactvr_musical

A simplified version of The Musical Forest (https://webvrexperiments.com) made with React VR and Pusher
JavaScript
17
star
17

rethinkdb-example

Example application for the tutorial Practical Introduction to RethinkDB on hack.guides()
JavaScript
17
star
18

ARKitCarGeolocation

AR app that tracks the location of a car
Swift
16
star
19

realtime-mysql-pusher

Java process that publishes insert/update/delete events of a MySQL database to a React app using Pusher
JavaScript
16
star
20

project-reactor-course

A guide to learn reactive programming with Project Reactor
Java
15
star
21

node-amp-live-list

Liveblog in AMP that shows Youtube videos. Implemented with the amp-live-list component and a Node.js/Express/EJS backend.
HTML
15
star
22

blockchain-proof-existence

This web application shows how to use Tierion Hash API, RethinkDB with the rethinkdbdash driver, and PubNub's Storage and Playback
JavaScript
10
star
23

react-router-4-example

Sample project to get started with React Router v4
JavaScript
9
star
24

chatbot-kotlin-dialogflow

Chat app for Android with a chatbot that gets trivia for the Numbers API using Kotlin, Pusher and Dialogflow
Kotlin
9
star
25

fork-join-demo

Example to show the use of the Fork/Join framework
Java
9
star
26

wineCoreML

iOS app that predicts the origin of wines using a Core ML model
Swift
8
star
27

twitter-feed-pusher

Realtime feed iOS app using Pusher
Swift
5
star
28

server_pusher_reactvr_musical

A Node.js server that publishes events to a Pusher channel so React VR clients can play sounds.
JavaScript
5
star
29

markdowntutorial

Markdown Tutorial and Reference
JavaScript
4
star
30

nda-chat

Web application that allows you to create chats (using Pusher's Presence Channels) with the functionality to request e-signed Non-Disclosure Agreements (NDAs) to its members using the HelloSign API.
Java
4
star
31

photo-feed-ios-pusher

A realtime photo feed in iOS using Pusher
Swift
3
star
32

PublishLocationiOSPusher

iOS app to publish location and heading updates in realtime using CoreLocation and Pusher
Swift
3
star
33

java-streams-example

Java
2
star
34

graph-pusher-android

Realtime Android app that shows a graph with MPAndroidChart and Pusher
Java
2
star
35

eh3rrera.github.io

HTML
2
star
36

hashtags_pusher

Node.js process that publishes tweets that contain certain hashtags to a Pusher channel
JavaScript
2
star
37

photo-feed-pusher-android

A realtime photo feed in Android using Pusher
Java
1
star
38

spring-data-mongodb-example

Java
1
star
39

chatkit-docusign

Chat that allows users to send messages until the have signed a document. Built with Chatkit, Docusign, React and Node.js
JavaScript
1
star
40

memory-pusher

A Node.js process that publishes events to a Pusher channel about memory stats.
JavaScript
1
star
41

getting-started-jpms

Code for my tutorial about Java 9 module system on Pluralsight guides
Java
1
star
42

chatkit-custom-auth-server

Custom authentication server in Java for Pusher Chatkit
Java
1
star