Skip to content

apo1967/voteapp-server-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot GraphQL Server Example

This Spring Boot GraphQL server implements the GraphQL schema and underlying model of the original Node.js based server of the React example app of the React learning book React written by Nils Hartmann and Oliver Zeigermann.

The original Node.js based server and the React app that is using it can be found at their Github repository.

Configuration

Per default the spring boot app runs at port 4000 and serves the pathes as configured in the React app's Apollo client config - see application.properties

The entities are persisted in an H2 in-memory database. The project comes with a built in H2-console mapped to "/h2console".

Please note that per default the GraphQL servlet is mapped to the root "/" and thus will handle any request, therefore the H2-console is not accessible unless you change the GraphQL mapping to e.g. "/graphql".

Notes

This is a quick and dirty self tutorial with no testing included at all. Also GraphiQl is not included, so if you want to test GraphQL queries, mutations or subscriptions with other than the React client app you have to use an external GraphQl tool like the native GraphiQL app.

Docker

You can pull an image of this project from the docker registry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published