4
0
forked from crowetic/commerce

24 lines
571 B
Markdown
Raw Normal View History

2021-02-09 09:14:42 +02:00
## Table of Contents
- [Getting Started](#getting-started)
# Shopify Storefront Data Hooks
Collection of hooks and data fetching functions to integrate Shopify in a React application. Designed to work with [Next.js Commerce](https://commerce-theta-ashy.vercel.app).
2021-02-04 13:23:44 +02:00
## Getting Started
2021-02-04 13:27:58 +02:00
1. Environment variables need to be set:
2021-02-04 13:23:44 +02:00
```
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=
```
2021-02-04 13:27:58 +02:00
2. Point the framework to `shopify` by updating `tsconfig.json`:
2021-02-04 13:23:44 +02:00
```
"@framework/*": ["framework/shopify/*"],
"@framework": ["framework/shopify"]
```