Retrieve your Shopify products, pages, and collections.
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
- Create a
.env
file with the following structure:
SHOPIFY_STORE_URL=*.myshopify.com
SHOPIFY_ACCESS_TOKEN=
SHOPIFY_API_VERSION=2022-01
- Install the dependencies:
npm install
- Run the demo locally:
node index.js