Skip to content

Graphql gateway docker service with helm chart repository for kubernetes. The graphql gateway service is a reverse proxy to multiple backend graphql providers. It is implemented with the graphql federation specification.

License

Notifications You must be signed in to change notification settings

hansehe/graphql-gateway

Repository files navigation

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

About

Graphql gateway docker service with helm chart repository for kubernetes. The graphql gateway service is a reverse proxy to multiple backend graphql providers. It is implemented with the graphql federation specification.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published