Sign inSign up

hansehe/graphql-gateway

By hansehe

•Updated about 2 years ago

https://github.com/hansehe/graphql-gateway

Image
0

50K+

hansehe/graphql-gateway repository overview

⁠Graphql Gateway

Artifact HUB

The graphql gateway service is a graphql gateway to multiple backend graphql providers. It is implemented with the graphql federation specification⁠.

Please also look at this graphql federation demo:

⁠Run With Docker

docker run --rm -p 8181:80 -e GRAPHQL_URL_0=http://first-graphql-service/graphql GRAPHQL_URL_1=http://second-graphql-service/graphql hansehe/graphql-gateway

Access graphql playground api at:

⁠Use Helm Repo

helm repo add graphql-gateway https://raw.githubusercontent.com/hansehe/graphql-gateway/master/helm/charts
helm repo update
helm install graphql-gateway \
--set environmentVariables.GRAPHQL_URL_0=http://service_1/graphql \
--set environmentVariables.GRAPHQL_URL_1=http://service_2/graphql \
graphql-gateway/graphql-gateway

⁠Development

# Prerequisites: docker/docker-compose/node/python
# https://pypi.org/project/DockerBuildManagement/
pip install --upgrade DockerBuildManagement
dbm -swarm -start
dbm -build -test -run service
# Access graphql gateway (federated schemas of backend 0 and 1) api at: http://localhost:8181/graphql/
# Access graphql backend 0 api at: http://localhost:5001/graphql/
# Access graphql backend 1 api at: http://localhost:5002/graphql/
dbm -swarm -stop

Tag summary

Content type

Image

Digest

sha256:58e09540a…

Size

85.5 MB

Last updated

over 2 years ago

docker pull hansehe/graphql-gateway