/graphql-server-example

An example repository for the Apollo Server "Getting Started" guide.

Primary LanguageJavaScript

A GraphQL server example

A simple, straight forward guide to building a GraphQL server with Apollo Server.

About this repository

This repository is the example application for the Getting Started guide in the Apollo Server documentation.

Online sandbox

Play with this example using Glitch by clicking the following button:

Remix on Glitch

Installation

  1. Clone this repository: git clone git@github.com:apollographql/graphql-server-example.git
  2. cd into the graphql-server-example folder and run the following commands:
    1. Run npm install
    2. Run node index.js
  3. Open your browser and see the server running on localhost:4000/graphql with the GraphQL playground.

Documentation

Check out the official Apollo Server documentation for more information.