Skip to content

dleatherman/node-shopify-storefront-data

Repository files navigation

Retrieve your Shopify products, pages, and collections.

Installation

The example above is using dotenv with a .env file to ensure credentials are not stored in the source code. Here's an example of the .env file:

SHOPIFY_STORE_URL=*.myshopify.com
SHOPIFY_ACCESS_TOKEN=
SHOPIFY_API_VERSION=2021-10
  1. Create a .env file with the following structure:
   SHOPIFY_STORE_URL=*.myshopify.com
   SHOPIFY_ACCESS_TOKEN=
   SHOPIFY_API_VERSION=2022-01
  1. Install the dependencies:
npm install
  1. Run the demo locally:
node index.js

About

Base node code for the eleventy-plugin-shopify

Resources

Stars

Watchers

Forks

Packages

No packages published