- Gateway http://localhost:4000/playground
Single Services:
- Product-Service http://localhost:8081/playground
- Account-Service http://localhost:8082/playground
- Order-Service http://localhost:8083/playground
You can query order ids from 1-3
{
order(id: "1") {
id
title
account {
id
firstname
lastname
orders {
id
title
}
}
products {
name
description
price
}
}
}
You can query account ids from 1-2
{
account(id: "1") {
firstname
lastname
orders {
id
title
products {
id
name
description
}
}
}
}
Wait for maven import and click on "Show run configurations in Services"
Then you can start all Services with one click
It also possible to start services with Maven. This must be done in every service subfolder.
./mvnw spring-boot:run -f product-service/pom.xml
./mvnw spring-boot:run -f account-service/pom.xml
./mvnw spring-boot:run -f order-service/pom.xml
Last, start Apollo Gateway in subfolder: "graphql-gateway". See here.
npm --prefix graphql-gateway install
npm --prefix graphql-gateway start