1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Set up a Shopify Account

    Chris BiscardiChris Biscardi
    gatsbyGatsby
    >=2.16.5

    To run the example project, we'll need to set up a shopify partner account, which is what they call their developer accounts.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss

    Transcript

    Transcript

    Instructor: To set up your Shopify account, you'll want to go to the Shopify Partners program. Shopify Partner is what Shopify calls their developers.

    We'll create an account. We need to fill out the rest of our account information, which is our business name. You have to read and agree to the Partner Program Agreement, and then you can view your dashboard.

    We'll go to Stores. Note that you'll have to confirm your email address before you can create a store. After confirming your email address, you can add a store. In this case, we'll choose a development store. Use a store name. Unfortunately, your name cannot be Corgi Supply, Inc., so you'll have to choose a different name, and we'll save.

    We need to add our first product to our store. In this case, I'm going to sell Corgi stickers. The description will be, "Some colorful corgis." I'll add an image. Note that if the image doesn't show up in the images, you can hit Preview to see the image.

    Next, scroll down to Variants. We're going to have multiple sizes, 1x1 stickers, 2x2 stickers, and 5x5 stickers. We'll set up the prices and the quantities as well as the SKUs, but we won't use SKU later.

    Now that we've created a product, we can move on to getting our app together. In the left-hand side bar, we'll click Apps, look past the giant hero banner and click Manage private apps. We'll create a new private app. This is how we'll use our credentials to access our store.

    Give you private app a name. By default, you have most of the access that you need, but we'll also need to enable the store for an API. After enabling the store for an API, make sure that you have Read product tags also enabled and save.

    Now that a private app has been successfully created, we have an API key. Let me share the secret. We use the store for an access token in our app but note that for later.

    That's it. You are all set up. Note that later when we use our access token, if anything is going wrong, it's often good to make sure that you've enabled all of the access that the token needs.

    The plugin we'll be using is Guest Resource Shopify and the permissions can be found in How to Use section of the Read Me.