Kick off your next, great Gatsby project with this Github source starter based on gatsby-source-github-api
This content is a guide explaining how to use the gatsby-source-graphql package to source data from GitHub’s GraphQL API v4. It provides step-by-step instructions on how to install the package, generate a GitHub API token, modify the GitHub query, and deploy the site to Netlify. The guide also mentions the use of the GraphQL Explorer and provides a link to a demo site.
To use the gatsby-source-graphql package for sourcing data from GitHub’s GraphQL API v4, follow these steps:
$ gatsby new my-portfolio
Generate a GitHub API token by following the instructions provided here.
Add the generated token to your .env file.
Modify the configuration according to your preferences. The configuration file is located at config/site.js.
Open the source code of your Gatsby site and navigate to the src/pages/index.js file.
Made desired changes to the src/pages/index.js file and save your changes. The browser will update in real time.
Your site is now running at http://localhost:8000. Additionally, you can also access the GraphQL tool at http://localhost:8000/___graphql to experiment with querying your data.
This guide provides step-by-step instructions on how to use the gatsby-source-graphql package to source data from GitHub’s GraphQL API v4. It covers the installation process, generating a GitHub API token, modifying the GitHub query, and deploying the site to Netlify. The guide also mentions the use of the GraphQL Explorer for querying data and provides a link to a demo site.