Small repo that has a basic Router config to test enterprise and OSS features with subgraphs
- Navigate to subgraph folder
cd subgraphs/
- Install libraries
npm i
- Run all subgraphs
npm start
- Navigate to router folder
cd router/
- Setup
.env
file (see below) - Download Router binary
./download-latest.sh
- Compose supergraph (if schema has changed)
./compose.sh
- Start Router with config
./start-router.sh
First copy .env.sample
to your own .env
file. You can create an API key for this graph in Studio E-commerce-Fed2@production. This graph has an enterprise license.
You can now configure and run enterprise features in router.yml
.
Various other directories exist for the different dependencies you might use when running a Router locally. We have Zipkin for OpenTelemetry traces, Redis for the APQ cache, coprocessor in NodeJS, etc. Check out the README in each folder to learn more on how to start and use those.