How to use the shopify-buy.Config function in shopify-buy

To help you get started, we’ve selected a few shopify-buy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Shopify / storefront-api-examples / react-js-buy / src / config.js View on Github external
import Client, {Config} from 'shopify-buy';

const config = new Config({
  storefrontAccessToken: 'dd4d4dc146542ba7763305d71d1b3d38',
  domain: 'graphql.myshopify.com',
});

export const client = new Client(config);

shopify-buy

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

MIT
Latest version published 6 months ago

Package Health Score

73 / 100
Full package analysis