forked from crowetic/commerce
24 lines
571 B
Markdown
24 lines
571 B
Markdown
## 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).
|
|
|
|
## Getting Started
|
|
|
|
1. Environment variables need to be set:
|
|
|
|
```
|
|
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=
|
|
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=
|
|
```
|
|
|
|
2. Point the framework to `shopify` by updating `tsconfig.json`:
|
|
|
|
```
|
|
"@framework/*": ["framework/shopify/*"],
|
|
"@framework": ["framework/shopify"]
|
|
```
|