Skip to content

xmlynek/Spring-boot-GraphQL-DGS-App

Repository files navigation

Spring boot Netflix DGS GraphQL Federation project

This is a modified project from the Udemy course Code GraphQL Application : Java Spring Boot 3 & Netflix DGS - Timotius Pamungkas.

This project was done just for demonstration purposes.

The repository contains three services:

  1. products: Java GraphQL service running on port 8081
  2. sales: Java GraphQL service running on port 8080
  3. apollo-gw: Node.js service of Apollo Server acting as the Federated Gateway running on port 4000

Quick start

  1. Have running postgres database
  2. Set products-application.yml and sales-application.yml datasource url
  3. Start both products and sales apps
  4. Run npm install in the apollo-gw project
  5. Run npm start or node index.js in the apollo-gw project
  6. Open http://localhost:4000 for the query editor

GraphQL services schema

Arrows - GraphQL services Schema