soybase / graphql-server

A GraphQL server that supports dynamic content in the LIS Jekyll site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legumeinfo GraphQL Server

This repository contains a GraphQL server made with the Apollo Server that consumes data from one or more InterMine servers.

Docker

You setup and run the Legumeinfo GraphQL Server with Docker as follows:

Setup

Use the following command to build the Docker image:

docker build . -t legumeinfo-graphql-server

Running

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.

Local

You setup and run the Legumeinfo GraphQL Server without Docker as follows:

Setup

Use the following command to install server's dependencies:

npm install

Running

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.

About

A GraphQL server that supports dynamic content in the LIS Jekyll site

License:Apache License 2.0


Languages

Language:JavaScript 98.0%Language:Dockerfile 2.0%