An open API service indexing awesome lists of open source software.

https://github.com/focusreactive/vsf-shopify-integration-alpha


https://github.com/focusreactive/vsf-shopify-integration-alpha

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# VSF Shopify Boilerplate

Included:

- Shopify Integration:
- Shopify Middleware
- Shopify SDK
- Shopify Storefront SDK

How to develop locally:

```console
yarn
yarn dev
```

open your in browser http://localhost:3000/

start editing NextSJ app in `/storefront/apps/web` in your IDE

Note: you need to setup your Shopify account and provide credentials to `playground/middleware/middleware.config.js`

Additionally you have to setup some custom metaobject schemas to consume and generate landing pages

To setup these metaobjects you can utilize GraphQL mutation through Admin endpoint:

```GraphQL

mutation ($schema: MetaobjectCreateInput!) {
metaobjectCreate(metaobject: $schema) {
metaobject {
id
}
}
}

```

you can find the metaobject definitions in the documentation in JSON file. It contains the result of calling the following query:

```graphql
{
metaobjectDefinitions(first: 50) {
edges {
node {
id
type
name
description
fieldDefinitions {
name
key
description
type {
category
name
}
required
}
}
}
}
}
```