Implementation of the GraphQL server
You are going to develop a standalone GraphQL server in this chapter. The knowledge you acquire while developing the standalone GraphQL server can be used to implement federated GraphQL services.
Let's create the Gradle project first in the next subsection.
Creating the gRPC server project
Either you can use the Chapter 14
code from a cloned Git repository (https://github.com/PacktPublishing/Modern-API-Development-with-Spring-and-Spring-Boot), or you can start by creating a new Spring project from scratch using Spring Initializr (https://start.spring.io/) for the server and client with the following options (you will create the gRPC api
library project separately):
- Project: Gradle Project
- Language: Java
- Spring Boot:
2.4.4
(the preferred version is 2.4+; if not available, you can later modify it manually in thebuild.gradle
file) - Project Metadata:
Group:
com.packt.modern.api
Artifact:
chapter14
Name:
chapter14
Description...