Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mimurawil/1338 update readme shopify next tailwind #1339

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading