Installation
#
Installing Prebuilt BinariesPlease download latest github release for your platform
#
Installing from SourceIf you have a recent go SDK installed:
go get -u github.com/aerogear/graphql-link
#
Getting startedUse the following command to create a default server configuration file.
Then run the server using this command:
You can then use the Web UI at http://127.0.0.1:8080 to configure the gateway.
#
Development and Production ModeThe graphql-link serve
command will run the gateway in development mode. Development mode enables the configuration web interface and will cause the gateway to periodical download upstream schemas on start up. The schema files will be stored in the upstreams
directory (located in the same directory as the gateway configuration file). If any of the schemas cannot be downloaded the gateway will fail to startup.
You can use graphql-link serve --production
to enabled production mode. In this mode, the configuration web interface is disabled, and the schema for the upstream severs will be loaded from the upstreams
directory that they were stored when you used development mode. This ensures that your gateway will have a consistent schema presented, and that it's start up will not be impacted by the availability of the upstream
servers.