Skip to content

Small repo that has a basic Router config to test enterprise and free acounts

License

Notifications You must be signed in to change notification settings

apollosolutions/router-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

router-playground

Small repo that has a basic Router config to test enterprise and OSS features with subgraphs

Starting Subgraphs

  • Navigate to subgraph folder cd subgraphs/
  • Install libraries npm i
  • Run all subgraphs npm start

Starting Router

  • 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

Testing Enterprise

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.

Starting other dependencies

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.

About

Small repo that has a basic Router config to test enterprise and free acounts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published