Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

68 lines (47 sloc) 2.3 KB

import { ExpansionPanel, ExpansionPanelList, ExpansionPanelListItem } from '../src/components/expansion-panel';

Follow these three steps to set up an Apollo project:

Install the Apollo CLI

To install the apollo CLI, ensure that node and npm are both installed, then run:

npm install --global apollo

Note: This guide will utilize the global installation method, but the apollo command can also be installed in a project's devDependencies and used via npm-scripts or npx.

Get your Engine API key

To get an API key, you will need to log in to Engine and create a new service by clicking the "Add Service" button. If you already have a service, get your API key by visiting your service's settings page. Once you have your API key, add it to your .env file like so:


The Apollo CLI will be looking for your .env file because it uses your Engine API key to authenticate with the schema registry when it pushes your schema.

Note: Make sure your .env file is in the root of your project so the Apollo CLI knows where to find it. You can also export ENGINE_API_KEY as an environment variable.

Create an apollo.config.js file

The commands executed through the Apollo CLI will be looking for your Apollo config to inform their behavior. To set up schema registration, you'll need to configure a source that the CLI can fetch your schema from like so:

// apollo.config.js
module.exports = {
  service: {
    endpoint: {
      url: "http://localhost:4000"
    // OR
    localSchemaFile: './path/to/schema.graphql'

The Apollo config documentation has more details and advanced configuration options for the apollo.config.js format.

You're done!
You can’t perform that action at this time.