Skip to content

Commit

Permalink
Mimurawil/1338 update readme shopify next tailwind (#1339)
Browse files Browse the repository at this point in the history
* chore: update readme file for shopify-next-tailwind

* fix: remove unused env vars in the example file
  • Loading branch information
mimurawil authored Dec 20, 2023
1 parent 24d0f73 commit 2703f0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions starters/shopify-next-tailwind/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
SESSION_SECRET="foobar"
STOREFRONT_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
STOREFRONT_API_SECRET=xxxxxxxxxxxxxxxxxxxxxx
PUBLIC_STOREFRONT_API_TOKEN=xxxxxxxxxxxxxxxxxxxxxx
PUBLIC_STOREFRONT_API_VERSION=2023-04
PUBLIC_STORE_DOMAIN=xxxxxxxxxxxxx.myshopify.com
8 changes: 3 additions & 5 deletions starters/shopify-next-tailwind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@ This template requires a [paid Shopify plan](https://www.shopify.com/pricing).
### Add Shopify domain to an environment variable

Create a `SHOPIFY_STORE_DOMAIN` environment variable and use your Shopify domain as the the value (ie. `[your-shopify-store-subdomain].myshopify.com`).
Create a `PUBLIC_STORE_DOMAIN` environment variable and use your Shopify domain as the the value (ie. `[your-shopify-store-subdomain].myshopify.com`).

> Note: Do not include the `https://`.
### Accessing the Shopify Storefront API

This template utilizes [Shopify's Storefront API](https://shopify.dev/docs/api/storefront) to create unique customer experiences. The API offers a full range of commerce options making it possible for customers to control products, collections, menus, pages, cart, checkout, and more.

In order to use the Shopify's Storefront API, you need to install the [Headless app](https://apps.shopify.com/headless) in your Shopify store.
Shopify recommends the use of their [Headless app](https://apps.shopify.com/headless) in your Shopify store, see https://shopify.dev/docs/custom-storefronts/headless for more info.

Once installed, you'll need to create a `SHOPIFY_STOREFRONT_ACCESS_TOKEN` environment variable and use the public access token as the value.

> Note: Shopify does offer a Node.js Storefront API SDK. We use the Storefront API via GraphQL directly instead of the Node.js SDK so we have more control over fetching and caching.
Once installed, you'll need to create a `PUBLIC_STOREFRONT_API_TOKEN` environment variable and use the public access token as the value.

## Installation

Expand Down

0 comments on commit 2703f0e

Please sign in to comment.