| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
An example using graphql-js-client built with React. This project was bootstrapped with Create React App. This example uses babel-plugin-graphql-js-client-transform in conjunction with graphql-js-client to build queries.
You will need the following things properly installed on your computer.
If you would like to connect your store to this example, open up src/index.js and update the url and X-Shopify-Storefront-Access-Token header:
export 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'
}
}
});Start a local server:
yarn start
For help on setting up the repo locally, building, testing, and contributing please see CONTRIBUTING.md.
All developers who wish to contribute through code or issues, take a look at the CODE_OF_CONDUCT.md.
MIT, see LICENSE for details.
| Back | FazBrowse Home | New Git URL |