Add GitHub Pinned Repositories to React & Next.js with the GitHub GraphQL API

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • Learn how to use the GitHub GraphQL API to fetch your pinned repositories to display in a Next.js React App. We'll walk through generating a GitHub Personal Access Token, setting up Apollo Client with authentication, and creating a graphQL query to get our repository data.
    🗒️ Read More
    spacejelly.dev...
    💾 Code
    github.com/col...
    🔔 Subscribe for more tech and developer videos
    www.youtube.co...
    🐦 Get updates straight to your Twitter @colbyfayock
    / colbyfayock
    📸 Catch the next stream live on Twitch @colbyfayock
    / colbyfayock
    ✉️ Or a newsletter right to your inbox!
    www.colbyfayoc...
    💝 Sponsor me for more free content like this!
    GitHub: github.com/spo...
    Other: hello@colbyfayock.com
    👨‍🚀 Brought to by colbyfayock.com
    www.colbyfayoc...
    🎥 Want to know what A/V equipment I use?
    www.colbyfayoc...
    🧰 More Resources
    Get started with Apollo Client
    www.apollograp...
    Apollo Client Authentication
    www.apollograp...
    Forming calls with GraphQL
    docs.github.co...
    Create Next App
    nextjs.org/doc...
    🎼 Music
    Music from Uppbeat (free for Creators!):
    uppbeat.io/t/r...
    License code: VH9M1NS5Q4SCNY0X
    #colbyfayock #github #opensource #portfolio #graphql #nextjs #webdevelopment

Комментарии • 41

  • @colbyfayock
    @colbyfayock  2 месяца назад

    Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course

  • @sahildhanavade1191
    @sahildhanavade1191 Год назад +1

    make a vedio on how to use github apps

  • @louisphilip_s
    @louisphilip_s 5 месяцев назад

    This is awesome and super helpful! Thank you 🤩 your way of explaining is so good! Keep up the good work.

  • @colbyfayock
    @colbyfayock  3 года назад +1

    Next learn how to dynamically manage SEO meta tags in Next.js ruclips.net/video/8BrZeaw3sLQ/видео.html
    Make sure to subscribe for more! ruclips.net/user/colbyfayock

    • @sahildhanavade1191
      @sahildhanavade1191 Год назад +1

      make a vedio on how to use github apps

    • @colbyfayock
      @colbyfayock  Год назад +1

      @@sahildhanavade1191 hey thanks for the idea, not sure ill get to it soon but i'll add it to my list!

  • @colbyfayock
    @colbyfayock  Год назад

    Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news

  • @tatemo_labs
    @tatemo_labs 3 года назад +2

    Very good tutorial and it helped me. Thank you!

  • @pensums
    @pensums 3 года назад +2

    As usual, straight to the point. Thanks for this video. 😁

  • @arielbetti
    @arielbetti 2 года назад

    Very good video, congratulations for the didactic

  • @mcconfigbladetm1252
    @mcconfigbladetm1252 2 года назад

    12:02 i have an ApolloError Only absolute URLs are supported
    please help

    • @colbyfayock
      @colbyfayock  2 года назад

      from my experience, this usually means that the endpoint isn't a fully formed URL, such as myendpoint.com/whatever

  • @lugare3
    @lugare3 Год назад

    When I run a console.log on the pinnedItems prop, it returns undefined. Can someone help me?

    • @colbyfayock
      @colbyfayock  Год назад

      hey did you happen to check out my code? github.com/colbyfayock/my-pinned-repos i havent tried this for a while, also could be possible the API changed, but i'd first check there

    • @syrine3935
      @syrine3935 10 месяцев назад

      @@colbyfayock I have the same problem

    • @colbyfayock
      @colbyfayock  10 месяцев назад

      @@syrine3935 i just spun up my sample project i linked above, upgraded the dependencies for everything, and it seemed to work. did you make sure to apply the appropriate permissions to the access token? try adding a try/catch around the request and see if its throwing an error or not working properly

  • @mattoattacko
    @mattoattacko 3 года назад +1

    Cool video, mate!

  • @ghost32bit
    @ghost32bit 2 года назад

    awesome

  • @MdTausifMuftasinAbid
    @MdTausifMuftasinAbid Год назад

    Thanks, bro the tutorial was awesome and it helped me a lot. I'm really happy that I found you on RUclips 💗💗💗

    • @colbyfayock
      @colbyfayock  Год назад

      no problem, happy ot hear it helped! :)

  • @bilalsharif487
    @bilalsharif487 2 года назад

    this wont work deployment some reason

    • @colbyfayock
      @colbyfayock  2 года назад

      Do You have your environment variables set?

    • @colbyfayock
      @colbyfayock  2 года назад +1

      Also check the deploy or console logs

    • @bilalsharif487
      @bilalsharif487 2 года назад

      @@colbyfayock i am so dump thank you so much it never accured to me why was it working locally, thank for asking appreciate so so much. thank you much umade the day

    • @colbyfayock
      @colbyfayock  2 года назад

      @@bilalsharif487 no problem 😁

  • @oguzdurmaz4893
    @oguzdurmaz4893 Год назад

    thank you very much. I'm really happy that I found this channel

  • @javidking63
    @javidking63 3 года назад

    4:08
    thats pretty much same as my token . at least 4 first words. :P

  • @trenom
    @trenom 2 года назад

    Great tutorial!