GithubHelp home page GithubHelp logo

takeshape-starter-shopify-storefront's Introduction

Shopify Storefront

Using the Shopify Storefront API with TakeShape is a simple way to add checkout and cart functionality to your projects.

This pattern sets up a basic Shopify Storefront configuration that fetches product and collection data, and creates customers, carts and checkouts.

It also uses our API Indexing feature to cache product and collection data in TakeShape. With API Indexing, you can fetch your data from TakeShape much faster than Shopify can return it, and without hitting Shopify's strict rate limits. Learn more about this feature in our API Indexing guide.

New to TakeShape? We provide an all-in-one backend service for headless e-commerce stores. Connect your e-commerce APIs to your TakeShape project, join their data with custom content stored in your TakeShape database, and fetch and mutate it all with a GraphQL API that TakeShape generates for you. No coding required! Sign up now for free to get your backend up and running in minutes.

How to use this pattern

  1. Click the Deploy button below to create a TakeShape project with the pattern in this repo:

    Deploy To TakeShape

  2. In the Home tab of your project dashboard, select Shopify Storefront in the service list.

A screenshot of the service list in the Home Tab

  1. You will be taken to the Shopify Storefront Service page.

    • In the Endpoint field, add your Storefront API URL, which should look like https://your-shop-name-here.myshopify.com/api/2022-01/graphql.json.
    • Under Authentication, add X-Shopify-Storefront-Access-Token to the Header field, and add your Shopify Storefront Access Token to the Token field (follow Shopify's instructions to get one)
    • Select Save in the top-right.
    • Select Cancel for any modals that popup after your service is connected.
  2. You can now query for Shopify Storefront products and collections.

    • Want to add more queries? Navigate to the API tab and open the Patterns & Services panel on the left side. Hover your cursor over the Shopify Storefront service and select the three dots that appear. Select Add Queries/Mutations, and search for the queries or mutations you'd like to add to the pattern.

    A screenshot of the "Add queries/mutations" button

  3. You can also fetch indexed data with the listIndexedShopifyStorefrontCollections and listIndexedShopifyStorefrontProducts queries. If these queries return no data, your products and collections may not have successfully been indexed yet. Navigate to the Shopify Storefront service in the Patterns & Services panel on the left side of the page. Scroll down until you see the ReIndex Data button. Select it to retry indexing your data. A screenshot of the "ReIndex Data" button

  4. You now have a TakeShape project with the Storefront API and TakeShape's API Indexing configured. Learn more about how you can extend your ecommerce data by checking out our docs on TakeShape's data modeling. Learn how to configure your shapes from your project schema by diving into our schema spec reference.

takeshape-starter-shopify-storefront's People

Contributors

s3prototype avatar

Watchers

Andrew Sprouse avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.