Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xmlynek/spring-boot-graphql-dgs-app
Spring boot graphql project using netflix DGS
https://github.com/xmlynek/spring-boot-graphql-dgs-app
dgs-framework gradle-multi-modules graphql graphql-federation graphql-server netflix-dgs nodejs spring-boot-3
Last synced: 27 days ago
JSON representation
Spring boot graphql project using netflix DGS
- Host: GitHub
- URL: https://github.com/xmlynek/spring-boot-graphql-dgs-app
- Owner: xmlynek
- Created: 2023-07-22T14:37:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-02T20:29:02.000Z (over 1 year ago)
- Last Synced: 2024-09-28T21:41:51.981Z (about 1 month ago)
- Topics: dgs-framework, gradle-multi-modules, graphql, graphql-federation, graphql-server, netflix-dgs, nodejs, spring-boot-3
- Language: Java
- Homepage:
- Size: 470 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.udemy.com/course/code-graphql-application-with-java-spring-boot-netflix-dgs/).
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](https://github.com/xmlynek/Spring-boot-GraphQL-DGS-App/blob/master/products/src/main/resources/application.yml) and
[sales-application.yml](https://github.com/xmlynek/Spring-boot-GraphQL-DGS-App/blob/master/sales/src/main/resources/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](GraphQL-services-schema.png)