Gatsby JS & Shopify: Gatsby ecommerce sites | Gatsby 2020
Gatsby e-commerce stack! Use Gatsby JS & Shopify lite to build small low-cost online stores (+ dynamic cart & checkout!)
Do you want to improve your React JS skills and increase your value as a front-end developer? 💵
- "Gatsby lets you build blazing fast sites with your data, whatever the source. Liberate your sites from legacy CMSs and fly into the future."
In this course we'll be building a HYBRID dynamic + static Gatsby e-commerce site using Shopify to manage our product data and orders!
Level-up your React skillset by learning Gatsby.js with a Shopify backend! Gatsby JS uses React JS and GraphQL to generate and build static pages from a given dataset. This course will look at setting up Shopify to manage our products and customer orders, while using GatsbyJS to generate a blazing-fast server-rendered React website from Shopify data.
We'll be creating a fully functioning e-commerce website in this course, looking at initial setup and development of Gatsby JS and Shopify locally, creating React components in Gatsby based on Shopify product and collection data, and querying Shopify data with GraphQL to automatically generate our static pages.
We'll also be creating a dynamic cart and inventory check to make sure products are available in real-time.
We'll look at how we can query Shopify data with GraphQL using the GraphiQL browser tool. Once we're familiar and comfortable developing with GatsbyJS and Shopify, we'll progress onto setting up and deploying a live website using Netlify that re-builds our static web pages every time we update content in our Shopify backend.
It's recommended you have rudimentary knowledge of React. We'll be covering everything else from Gatsby.js, Shopify, GraphQL, and styled-components!
Speed past the competition with Gatsby!
Gatsby.js builds the fastest possible website. Instead of waiting to generate pages when requested, Gatsby pre-builds pages and lifts them into a global cloud of servers (we'll be using Netlify for this) - ready to be delivered instantly to your users wherever they are.
Some advantages of using Gatsby include:
- No waiting for API responses
- No waiting to render components based on requested data
- No loading spinners!
- No waiting for a server to compile a page to serve to the browser - these pages are already pre-compiled with Gatsby and ready to serve instantly to your users!
We certainly cover a lot in this Gatsby course!
Course Curriculum
- Important: Before you begin this course
- Course introduction (4:02)
- Gatsby & Shopify Overview (5:29)
- Set up Gatsby project (3:03)
- Gatsby project starter files walkthrough (7:21)
- Set up Shopify & importing example products (9:21)
- Disable Shopify real-life payments + enable bogus payments (1:56)
- Collections in Shopify (2:32)
- Set up API keys in Shopify & connect to Gatsby (6:12)
- Query Shopify data using GraphiQL (3:02)
- Introduction to CartContext and calling the shopify API dynamically (9:06)
- Rendering the product variants (4:50)
- Rendering the variant price (5:37)
- Implementing routing for variants (part 1) (7:45)
- Implementing routing for variants (part 2) (4:20)
- Change the image thumbnail on variant selection (2:26)
- Hide variants if only 1 variant (1:04)
- Creating the ProductQuantityAdder component (part 1) (9:50)
- Creating the ProductQuantityAdder component (part 2) (1:52)
- Add logic to the ProductQuantityAdder (2:43)
- Creating the Header component (5:25)
- Implement the add to cart functionality (7:10)
- Display the number of items and total price in header (3:19)
Your instructor
Hey! My name's Tom. I've taught Gatsby with various integrations to over 2,000 students and counting. My aim with this course is to increase your value as a developer and to bring you up to speed with the proper way to use this stack.