Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Source and Create Nodes with Data from an API in Gatsby to Create a Pokemon Pokedex

via egghead.io

Overview

The Gatsby ecosystem supports a ton of plugins that allow you to easily source data from a variety of sources like a GraphQL CMS or Wordpress. But what if you wanted to source your own custom data?
In this collection, we'll walk through learning how to source custom data and create nodes in Gatsby in order to build out a Pokedex using the PokeAPI. We'll learn how to request the data in Gatsby's build process, create nodes with that data, query that data, and use it to create a Pokemon Pokedex UI.

Syllabus

  • Request Data from a Custom API Endpoint to Source Nodes in Gatsby with gatsby-node.js
  • Create and Source Custom Nodes from Data in Gatsby with createNode
  • Use Gatsby’s GraphQL Explorer GraphiQL to Query and Browse Your Custom Sourced Data
  • Use Gatsby’s useStaticQuery React Hook to Query Custom Sourced Data for a Web App
  • Create a Custom React Hook Using Gatsby’s useStaticQuery to Query Custom Sourced Data
  • Create a Grid Layout of List Items Using CSS Grid Templates
  • Add a Cutout Notch to an HTML Element with a CSS Polygon Clip Path

Taught by

Colby Fayock

Reviews

4.5 rating at egghead.io based on 4 ratings

Start your review of Source and Create Nodes with Data from an API in Gatsby to Create a Pokemon Pokedex

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.