Skip to content

The subgraphs and supergraph used in the Apollo Router Getting Started

License

Notifications You must be signed in to change notification settings

apollographql/starstuff

Repository files navigation

Starstuff Demo

This repository is used in the Apollo Router Quickstart.

Installation

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

About

The subgraphs and supergraph used in the Apollo Router Getting Started

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published