Gatsby and Shopify Part 1
Add to favorites
Create a Shopify store, generate a password and add products to the store

Advanced React Hooks Handbook
1
Intro to Firebase
6:59
2
Firebase Auth
11:59
3
Firestore
10:51
4
Firebase Storage
6:40
5
Serverless Email Sending
10:02
6
Geocoding with Mapbox
9:24
7
Contentful Part 1
4:59
8
Contentful Part 2
8:52
9
Gatsby and Shopify Part 1
5:20
10
Gatsby and Shopify Part 2
13:21
11
Gatsby and Shopify Part 3
14:32
12
Creating Stripe Account and Product
5:18
13
Adding Stripe.js to React
5:54
14
Stripe Checkout Client Only
18:18
15
PayPal Checkout
31:21
Completed project code
You can find the completed project code on Github at https://github.com/stephdiep/gatsby-shopify-tutorial . If you clone the Github project, remember to add your own password , storeUrl and storefrontAccessToken in the .env file for the project to build successfully. You can view the live demo at https://gatsby-shopify-tutorial.netlify.app/.
Why use Shopify?
Unlike Stripe , which needs you to set up a backend server, Shopify takes care of all the backend logic for you, so you can just focus on the frontend. Shopify comes with three different pricing plans , and you benefit from a 14-days free trial once you sign up. It's super easy to implement Shopify with our frontend, even more so if you're using Gatsby. We'll learn how to use the gatsby-source-shopify plugin to connect Shopify with our website. To implement the checkout experience, we'll use the shopify-buy npm package.
Create a Shopify account and store
Before connecting Gatsby to our Shopify account, we'll need to create an account and a store, if you don't already have one. Head over to https://www.shopify.com/ and create an account by clicking on the Start free trial green button at the top right corner.
Then, we'll need to create our first online store. Give your store a name and fill in the forms. Once your store is created, you'll have a 14-days free trial.
Once everything is set up, you should land on your dashboard.
Click on Apps and, at the bottom, on Manage private apps.
Click on Enable private app development . On the next screen, check all boxes - it'll state that you understand the risks of enabling private app development. Then, click on Enable private app development.
Once this is done, you'll need to click on Create private app.
Under App details , fill in your Private app name , with any name that you wish, and the Emergency developer email.
Under the Admin API section , click on Show inactive API permissions and change each row to Read access . For the Webhook API version , leave it to the Latest one. This tutorial was built with the version 2021-10.
Under the Storefront API section, check the box to Allow this app to access your storefront data using the Storefront API . Under Storefront API Permissions , remember to also check the Read product tags and Read customer tags boxes.
Once you're done, click on Save . In the modal that appears, click on Create app.
Then, under the Admin API section, you'll see your API keys. Remember to keep them secure, and to never share them. Copy the Password and your store URL (in the URL bar, in my case it's designcode-tutorial.myshopify.com ).
Add products to store
We'll need to add a few products to our Shopify store. Click on Products and Add your products.
Fill in the Add product to add a product to your store. You can head over to Unsplash to get random pictures of products, if you don't have any. Once you're satisfied with your product listing, click on Save . Repeat this step a few times to add a few more products to your store.
Once you added all your products to your store, we're ready to code!
Create a Gatsby website
Head over to the Gatsby and React section of this handbook to learn how to create a new Gatsby website from the Terminal, if you don't already have it.
Upcoming
Now we set up our Shopify store, got our password and storeUrl, and added a few products to our store! In the next section, we'll do the coding part: installing the gatsby-source-shopify plugin and connecting the data to our frontend. See you in the next section!
Learn with videos and source files. Available to Pro subscribers only.
Purchase includes access to 50+ courses, 320+ premium tutorials, 300+ hours of videos, source files and certificates.
Templates and source code
Download source files
Download the videos and assets to refer and learn offline without interuption.
Design template
Source code for all sections
Video files, ePub and subtitles
Browse all downloads
1
Intro to Firebase
Learn about Firebase and set it up in your React project
6:59
2
Firebase Auth
Set up authentication in your React application using Firebase Auth
11:59
3
Firestore
Enable Firestore as your database in your React application
10:51
4
Firebase Storage
Enable Firebase Storage in your application to store photos or videos from users
6:40
5
Serverless Email Sending
Use EmailJS to send an email without backend
10:02
6
Geocoding with Mapbox
Create an address autocomplete with Mapbox's Geocoding API
9:24
7
Contentful Part 1
Create a Contentful account, add a model and content
4:59
8
Contentful Part 2
How to use the Content Delivery API to fetch data from Contentful
8:52
9
Gatsby and Shopify Part 1
Create a Shopify store, generate a password and add products to the store
5:20
10
Gatsby and Shopify Part 2
Connect Shopify to Gatsby and display all products
13:21
11
Gatsby and Shopify Part 3
Create a seamless checkout experience with Shopify and Gatsby
14:32
12
Creating Stripe Account and Product
Start integrating with Stripe and set up an account, product and price
5:18
13
Adding Stripe.js to React
Loading Stripe.js library to your React client application
5:54
14
Stripe Checkout Client Only
Accept payment with Stripe Checkout without backend
18:18
15
PayPal Checkout
Integrate online payment with PayPal
31:21
Meet the instructor
We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.
Stephanie Diep
iOS and Web developer
Developing web and mobile applications while learning new techniques everyday
7 courses - 36 hours

Build Quick Apps with SwiftUI
Apply your Swift and SwiftUI knowledge by building real, quick and various applications from scratch
11 hrs

Advanced React Hooks Handbook
An extensive series of tutorials covering advanced topics related to React hooks, with a main focus on backend and logic to take your React skills to the next level
3 hrs

SwiftUI Concurrency
Concurrency, swipe actions, search feature, AttributedStrings and accessibility were concepts discussed at WWDC21. This course explores all these topics, in addition to data hosting in Contentful and data fetching using Apollo GraphQL
3 hrs

SwiftUI Combine and Data
Learn about Combine, the MVVM architecture, data, notifications and performance hands-on by creating a beautiful SwiftUI application
3 hrs

SwiftUI Advanced Handbook
An extensive series of tutorials covering advanced topics related to SwiftUI, with a main focus on backend and logic to take your SwiftUI skills to the next level
4 hrs

React Hooks Handbook
An exhaustive catalog of React tutorials covering hooks, styling and some more advanced topics
5 hrs

SwiftUI Handbook
A comprehensive series of tutorials covering Xcode, SwiftUI and all the layout and development techniques
7 hrs