From c9cf57c933fe6a2cbc85c71786412ebd2670ef99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Meyer?= Expand to view detailed walkthrough
-
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/settings/apps`.
-1. Click the green `Shopify App Store` button.
- 
-1. Search for `Headless` and click on the `Headless` app.
- 
-1. Click the black `Add app` button.
- 
-1. Click the green `Add sales channel` button.
- 
-1. Click the green `Create storefront` button.
- 
-1. Copy and paste the public access token and assign it to a `SHOPIFY_STOREFRONT_ACCESS_TOKEN` environment variable.
- 
-1. If you ever need to reference the public access token again, you can navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/headless_storefronts`.
-Expand to view detailed walkthrough
-
-1. Download [Shopify Headless Theme](https://github.com/instantcommerce/shopify-headless-theme).
- 
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/themes`.
-1. Click `Add theme`, then `Upload zip file`.
- 
-1. Select the downloaded zip file from above, and click the green `Upload file` button.
- 
-1. Click `Customize`.
- 
-1. Click `Theme settings` (ie. the paintbrush icon), expand the `STOREFRONT` section, enter your headless store domain, click the gray `Publish` button.
- 
-1. Confirm the theme change by clicking the green `Save and publish` button.
- 
-1. The headless theme should now be your current active theme.
-
-Expand to view detailed walkthrough
-
-#### Checkout, order status, and order history
-
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/settings/checkout`.
-1. Click the green `Customize` button.
- 
-1. Click `Branding` (ie. the paintbrush icon) and customize your brand. Please note, there are three steps / pages to the checkout flow. Use the dropdown to change pages and adjust branding as needed on each page. Click `Save` when you are done.
- 
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/settings/branding`.
-1. Customize settings to match your brand.
- 
-
-#### Emails
-
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/settings/email_settings`.
-1. Customize settings to match your brand.
- 
-
-#### Favicon
-
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/themes`.
-1. Click the green `Customize` button.
- 
-1. Click `Theme settings` (ie. the paintbrush icon), expand the `FAVICON` section, upload favicon, then click the `Save` button.
- 
-
-Expand to view detailed walkthrough
-
-#### Setup secret for secure revalidation
-
-1. Create your own secret or [generate a random UUID](https://www.uuidgenerator.net/guid).
-1. Create a [Vercel Environment Variable](https://vercel.com/docs/concepts/projects/environment-variables) named `SHOPIFY_REVALIDATION_SECRET` and use the value from above.
-
-#### Configure Shopify webhooks
-
-1. Navigate to `https://SHOPIFY_STORE_SUBDOMAIN.myshopify.com/admin/settings/notifications`.
-1. Add webhooks for all six event topics listed above. You can add more sets for other preview urls, environments, or local development. Append `?secret=[SECRET]` to each url, where `[SECRET]` is the secret you created above.
- 
- 
-
-#### Testing webhooks during local development
-
-The easiest way to test webhooks while developing locally is to use [ngrok](https://ngrok.com).
-
-1. [Install and configure ngrok](https://ngrok.com/download) (you will need to create an account).
-1. Run your app locally, `npm run dev`.
-1. In a separate terminal session, run `ngrok http 3000`.
-1. Use the url generated by ngrok and add or update your webhook urls in Shopify.
- 
- 
-1. You can now make changes to your store and your local app should receive updates. You can also use the `Send test notification` button to trigger a generic webhook test.
- 
-
-