Directories in use
- gateway_service_hard_coded_urls
- federated_service_a
- federated_service_b
- Start graphql-schema-registry. Wait until DB & UI work at http://localhost:6001/
nvm use
npm install
npm run build
docker-compose up
- Start gateway_service (not dockerized)
cd gateway_service_hard_coded_urls && npm install && node index.js
- (In separate terminals) Start federated services
cd federated_service_a && npm install && node index.js
cd federated_service_b && npm install && node index.js
-
Check graphql-schema-registry UI. It should contain now schema from both services http://localhost:6001/
-
Open gateway's playground UI in the browser and try to make request to both services http://localhost:6100
Same as above, except that gateway takes URLs from schema-registry
Directories:
- gateway_service_managed_federation
- federated_service_a
- federated_service_b