https://github.com/alecaivazis/schema-federation-demo
A starting point for my series on schema federation
https://github.com/alecaivazis/schema-federation-demo
Last synced: 3 months ago
JSON representation
A starting point for my series on schema federation
- Host: GitHub
- URL: https://github.com/alecaivazis/schema-federation-demo
- Owner: AlecAivazis
- Created: 2019-01-30T19:17:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T11:51:15.000Z (over 2 years ago)
- Last Synced: 2024-10-12T13:39:15.165Z (8 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schema Federation Demo
This is the project that accompanies my series on schema federation. For more information on schema federation or
the reason for this project, read [this post](https://medium.com/@aaivazis/a-guide-to-schema-federation-part-1-995b639ac035).Each post after the first has a corresponding branch in this repo that acts as the starting point for that guide.
## Running the services
Each service is defined by a single file that contains all of required information to have a functioning graphql API.
To start, install the dependencies by running `npm i` in this directory and then run each node script in a separate terminal:```bash
node ./auctionService.js
``````bash
node ./photoService.js
```These servers listen on ports 3000 and 3001 respectively.
## Running the gateway
The correct method for running the gateway depends on the details of the example. For the first guide, you can
start by downloading the appropriate binary from the latest release of the nautilus gateway and then pointing it
at the two services that you just started:```bash
gateway start --services http://localhost:3000,http://localhost:3001
```