This repository is used in the Apollo Router Quickstart.
To run this locally, pull down the repository then run the following commands:
npm install
This will install all of the dependencies for each subgraph.
npm run subgraphs
This command will run all of the microservices at once. They can be found at http://localhost:4001, http://localhost:4002, http://localhost:4003, and http://localhost:4004.
In another terminal window, run the router by running this command:
rover dev --supergraph-config supergraph-dev.yaml
This will start up the router and serve it at http://localhost:4000
To generate a supergraph schema and use it with Apollo Router:
rover supergraph compose --config supergraph.yaml > supergraph.graphql
./router --supergraph supergraph.graphql --dev