Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Files

Latest commit

 

History

History

ember-apollo

ember-apollo

An example using Apollo built with Ember.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone https://github.com/Shopify/storefront-api-examples.git this repository
  • cd storefront-api-examples
  • cd ember-apollo
  • yarn global add ember-cli
  • yarn install

Configuring

If you would like to connect your store to this example, open up config/environment.js and update the apiURL:

var ENV = {
  ...
  apollo: {
    apiURL: 'https://your-shop-name.myshopify/api/graphql'
  },
  ...
}

Then, add your storefront access token to app/services/apollo.js:

_runAuthorize(req, next) {
  ...
  req.options.headers['X-Shopify-Storefront-Access-Token']= 'your-storefront-access-token';
  ...
}

Running

Further Reading / Useful Links

Contributing

For help on setting up the repo locally, building, testing, and contributing please see CONTRIBUTING.md.

Code of Conduct

All developers who wish to contribute through code or issues, take a look at the CODE_OF_CONDUCT.md.

License

MIT, see LICENSE for details.