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

Files

Latest commit

b6be490 · Jun 25, 2018

History

History

ember-graphql-client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 25, 2018
Mar 28, 2017
Mar 28, 2017
Apr 19, 2017
Apr 4, 2017
Mar 28, 2017
Mar 28, 2017
Mar 28, 2017
Mar 28, 2017
Mar 28, 2017
Mar 23, 2017
Mar 28, 2017
Mar 28, 2017
Mar 28, 2017
Apr 13, 2017
Apr 13, 2017
Apr 18, 2017
Apr 3, 2018
Mar 28, 2017
Apr 12, 2017
Jun 27, 2017
Apr 17, 2017
Mar 28, 2017
Jun 25, 2018

README.md

ember-graphql-client

An example using graphql-js-client built with Ember. This example uses babel-plugin-graphql-js-client-transform in conjunction with graphql-js-client to build queries.

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-graphql-client
  • yarn global add ember-cli
  • yarn install

Configuring

If you would like to connect your store to this example, open up app/initializers/graphql-js-client.js and update the url and Authorization header:

const client = new Client(typeBundle, {
  url: 'https://your-shop-name.myshopify.com/api/graphql',
  fetcherOptions: {
    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.