This repository contains a GraphQL server made with the Apollo Server that consumes data from one or more InterMine servers.
You setup and run the Legumeinfo GraphQL Server with Docker as follows:
Use the following command to build the Docker image:
docker build . -t legumeinfo-graphql-server
Once the Docker image is build, use the following command to start a container:
docker run -p 4000:4000 legumeinfo-graphql-server
Then navigate your browser to http://localhost:4000 to query the server with the Apollo Explorer.
You setup and run the Legumeinfo GraphQL Server without Docker as follows:
Use the following command to install server's dependencies:
npm install
Once the dependencies are installed, use the following command to start the server:
node src/index.js
Then navigate your browser to http://localhost:4000 to query the server with the Apollo Explorer.