Building a Headless Ecommerce Store with Tailwind CSS, Shopify, and Next.js

Поділитися
Вставка
  • Опубліковано 8 чер 2024
  • In this video, we're going to build a simple Ecommerce website with Tailwind UI, Shopify, and Next.js.
    We'll fetch products from Shopify using the Storefront GraphQL API, and build our front-end by assembling and customizing components from Tailwind UI.
    Demo site: tailwindui-shopify.vercel.app
    Tailwind UI: tailwindui.com
    Storefront API: shopify.dev/api/storefront
    0:00 - Intro
    0:42 - Starting point
    1:56 - Tailwind UI
    2:29 - Homepage hero
    3:56 - Products list
    5:26 - Storefront API
    8:01 - Fetching data in Next.js
    8:33 - Fetch helper method
    10:50 - Products query
    12:52 - Displaying products
    15:55 - Drink some water!
    16:04 - Single product page
    16:33 - Tailwind UI page example
    19:07 - Single product query
    23:29 - Displaying the product
    25:38 - Related products query
    27:31 - Displaying related products
    28:21 - Checkout button
    32:45 - Wrap up
  • Наука та технологія

КОМЕНТАРІ • 125

  • @francismori7
    @francismori7 2 роки тому +128

    This actually taught me GraphQL better than any Shopify videos I watched.

    • @Ss-zg3yj
      @Ss-zg3yj 2 роки тому +22

      Learning GraphQL by watching Shopify and Tailwind videos? Genius.

    • @DaviAreias
      @DaviAreias 2 роки тому +8

      Shopify tutorials generally suck lol

    • @mrshayshay21
      @mrshayshay21 2 роки тому +1

      @@DaviAreias they do!

    • @nextentrepreneur9288
      @nextentrepreneur9288 2 роки тому

      @@Ss-zg3yj This! You read so muxh nonsense in the yt comments just to shamelessly please the channel owner and get likes

    • @Ss-zg3yj
      @Ss-zg3yj 2 роки тому

      @@nextentrepreneur9288 lol whole Tailwind community is basically circle jerking club 😃 Also, Tailwind is absolutely disgusting, I hate it so much (and have to use it for almost 3 years now)

  • @braydoncoyer174
    @braydoncoyer174 2 роки тому +18

    I'm here mainly for Simon's introduction fade outro.

    • @simonswiss
      @simonswiss 2 роки тому +2

      Lol I definitely FADED after recording that marathon video, I was toast 😅

  • @valtism
    @valtism 2 роки тому +14

    Love these longer form videos. Very informative watching the (pseudo) workflow of someone who is more experienced in working with these technologies.

  • @gavinbryan123
    @gavinbryan123 2 роки тому +5

    Just brilliant. You covered and explained a plethora of tech there with a real world example with ease and superb clarity.

  • @returnZeroo
    @returnZeroo 2 роки тому +8

    You don't know how much confidence you gave me. Just from this one video, I got a solid idea of how to create a custom Shopify theme with Shopify GraphQL API.
    I can't give you thank enough.

    • @simonswiss
      @simonswiss 2 роки тому +1

      This is awesome to hear! Wishing you the best with your idea 👊

  • @ChadSolomon
    @ChadSolomon 2 роки тому +6

    Gotta love those hidden sound effects. Epic video, thanks

    • @simonswiss
      @simonswiss 2 роки тому +2

      Heh they're a lot of fun to add when editing 😅

  • @hot4mix
    @hot4mix 2 роки тому +17

    10:57
    i looked at my phone, i looked at my desktop. was convinced i'm haunted before i replayed the video...

    • @simonswiss
      @simonswiss 2 роки тому +2

      Haha the magic "getStaticProps" delivery from the left side of the brain

    • @bulletdrop
      @bulletdrop 2 роки тому +3

      I thought the google assistant on my phone acquired consicousness and started AI revolution haha

  • @yashsolanki069
    @yashsolanki069 Рік тому +1

    I had no idea this video would be so full of content!!
    Thanks for the amazing Content! and your teaching style is really simple and easy to follow along for us.🙌

  • @Decatilinae
    @Decatilinae 2 роки тому +2

    Amazing video...hope to see more advance Shopify and tailwind tutorials

  • @M4CARBINE556
    @M4CARBINE556 2 роки тому +1

    I feel like this left me with more questions than answers.

  • @angeloliwanag2619
    @angeloliwanag2619 2 роки тому

    Thank you so much. I really needed a starter guide

  • @chunli680
    @chunli680 2 роки тому +3

    15:55 I think all UA-cam tutorial videos should do this lol
    Thank you for the fantastic content!

  • @tamrat_assefa
    @tamrat_assefa 2 роки тому

    Learned a lot with this one. Thanks.

  • @kenyaseemenow
    @kenyaseemenow 2 роки тому +9

    Perfect timing, I just started a project using this stack.

    • @simonswiss
      @simonswiss 2 роки тому +1

      Haha that's awesome! I'd love to see what you come up with 🎉

  • @JairoPy
    @JairoPy 2 роки тому

    Amazing tutorial, thank you very much!

  • @BTCruiser2011
    @BTCruiser2011 2 роки тому +1

    Simply an amazing video

  • @Demonnof
    @Demonnof 2 роки тому +1

    really needed this thanks!

  • @akamfoad
    @akamfoad 2 роки тому

    Very well done, keep it up!

  • @huuphongcom
    @huuphongcom 2 роки тому +5

    Love Tailwind videos, and Simons's intro.

  • @asnaweabdulrahman6676
    @asnaweabdulrahman6676 Рік тому

    Bro I really do appreciate you for this help, Thanks! I subscribed and Liked the video.

  • @pjmanning
    @pjmanning 2 роки тому +25

    Would love to see a Nuxt/Vue 3 implementation with Shopify/Swell as well :)

  • @techcheck3042
    @techcheck3042 2 роки тому +1

    Wow.. Such a good video. Definitely subscribed 👌

  • @gocanto
    @gocanto 2 роки тому +1

    amazing stuff!

  • @valentinbenitobousquet6166
    @valentinbenitobousquet6166 2 роки тому

    AMAZING, thanks. 🤞🏻

  • @How2Forex
    @How2Forex 2 роки тому

    Nice person, tailwind lucky for having him 15:57

  • @funkymag
    @funkymag 2 роки тому +1

    Thank you, Simon!

  • @dinhkhanh
    @dinhkhanh 2 роки тому +2

    I know every stack in this video but still enjoy watching it.

  • @malindaweerasinghe2501
    @malindaweerasinghe2501 2 роки тому

    Nice one guys

  • @RianY2K
    @RianY2K 2 роки тому +2

    this is good tutorial

  • @digitalbangladesh6977
    @digitalbangladesh6977 Рік тому

    I love soft soft so so so so much!

  • @tiagoagm
    @tiagoagm 2 роки тому

    This is perfect

  • @Tottinguero
    @Tottinguero 7 місяців тому +1

    It would be amazing to have an update on this including how to manage customers accounts in a headless way (login, logout, see order info...)

  • @sebastian5100630
    @sebastian5100630 2 роки тому

    amazing!

  • @user-ut4uk9mm8c
    @user-ut4uk9mm8c Рік тому +1

    21:05 - Here we go!

  • @jtrenda333
    @jtrenda333 2 роки тому +4

    How did you get to the graphql api? that bit of info would have been helpful.

  • @andreibicu5592
    @andreibicu5592 2 роки тому

    Isn't easier to map the response from GraphQL to a FE model and use it instead? I'm thinking that a slight change in BE response will break the FE.

  • @haski2965
    @haski2965 2 роки тому +1

    Can you guys make a tutorial on the animated code block on tailwind home page?

  • @phantazzor
    @phantazzor 9 місяців тому

    Une suite avec hydrogen remix would be cool

  • @TheRealGloo
    @TheRealGloo 2 роки тому +1

    where did you get the API_URL from? it didnt work for me when I changed it to fit my store name

  • @BigScaryMonster
    @BigScaryMonster 2 роки тому

    This is beautiful. Why would you ever want to live in a #NoCode world?

  • @realtorBG
    @realtorBG 2 роки тому

    awesome

  • @siddharth686
    @siddharth686 Рік тому

    How do we go about getting a confirmation response once the checkout is completed?

  • @alexthewebdesigner1856
    @alexthewebdesigner1856 11 місяців тому

    @Tailwind Labs
    ...wondering if you plan to update this video to Next js13 or make a more comprehensive tutorial? BTW, FYI, the link to the demo site is broken.

  • @debjitbiswas1552
    @debjitbiswas1552 2 роки тому +2

    The demo url is missing???

  • @the42nd
    @the42nd 2 роки тому +4

    Possible to share this code for a starting point?

  • @zenzmatic5744
    @zenzmatic5744 2 роки тому

    does anyone know can you go from development to live website what are the steps?

  • @eli007s
    @eli007s 2 роки тому +1

    Lemme know when a NuxtJs tutorial is available

  • @Cyandog
    @Cyandog 5 місяців тому

    Was the checkout page already implemented or does Shopify handles that through the link returned from the GQL query?

  • @NeverCodeAlone
    @NeverCodeAlone 2 роки тому +1

    This is magic!! Thx for your passion. Are you fasten your videos?

    • @simonswiss
      @simonswiss 2 роки тому +2

      I speed up a few typing sections in this video, yeah. But most of it is just very tightly edited, not fast-forwarded!

    • @NeverCodeAlone
      @NeverCodeAlone 2 роки тому

      @@simonswiss Very good. I have to be much better i think ;)

  • @zenzmatic5744
    @zenzmatic5744 2 роки тому

    how can i integrate printful with next.js and shopify storefront

  • @DeveloperJunaid
    @DeveloperJunaid 11 місяців тому

    Amazing Video so far

  • @closernear5058
    @closernear5058 2 роки тому +1

    transformedSrc is deprecated ??

  • @TutoDS2014
    @TutoDS2014 2 роки тому

    Hi
    Can make a video using sass?
    I'm a lot of problems using Tailwind on my nextjs project with sass

  • @adimaralimuddin96
    @adimaralimuddin96 Рік тому +1

    i love tailwind css!!!. i found no reason to not to use it. why using MUI or any other component based library when you have to customize it anyway.

  • @yolla_4
    @yolla_4 Рік тому

    which theme and font you're using???

  • @guilhermemm-dev
    @guilhermemm-dev Рік тому +2

    code repository please?

  • @nesabadiano448
    @nesabadiano448 2 роки тому +1

    Hi Simon where is the process of getting the Access Token?

    • @simonswiss
      @simonswiss 2 роки тому +1

      Hey! In your Shopify store, under the "apps" menu, there is a "manage private apps" at the bottom. In there, you can find both the access token and the API URL!

  • @Troy-ol5fk
    @Troy-ol5fk Рік тому +1

    the demo link is broken

  • @sandeepgupta2476
    @sandeepgupta2476 Рік тому

    don't we have a rest api for storefront API

  • @QueeeeenZ
    @QueeeeenZ 2 роки тому

    hey Simon what microphone are you using?

    • @simonswiss
      @simonswiss 2 роки тому

      Rode VideoMic NTG - absolutely love it 🙏 But the secret here to have it off-camera is not the mic itself, it's the moving blankets on the walls and the carpet I added to absorb all the room reverb 👍

  • @roshanican504
    @roshanican504 2 роки тому

    what's your font in vs code ?

  • @elleryfamilia8291
    @elleryfamilia8291 Рік тому

    what's the music? love it at 18:30

  • @colynatrockethomes2595
    @colynatrockethomes2595 2 роки тому

    Why do you need the env vars to be public if they are only used at build time?

    • @simonswiss
      @simonswiss 2 роки тому +1

      Good question - no real need for the homepage, but on the single product page, the "buy now" button sends a mutation to the GraphQL API from the browser, that's the only place it's actually needed!

  • @nesabadiano448
    @nesabadiano448 2 роки тому

    Hi Simon! how did you get the shopify API path?

  • @sinyayadynya
    @sinyayadynya 2 роки тому

    Just curious if it is also possible to build headless checkout with Shopify. Any idea?

    • @alessandro2092
      @alessandro2092 2 роки тому

      Not possible at the moment.

    • @Georg360s
      @Georg360s 6 місяців тому

      yep, with stripe as the payment processor, there are a bunch of them as a service

  • @user-bq4xc2yy3m
    @user-bq4xc2yy3m 2 роки тому

    Is this a secure option?

  • @radian825
    @radian825 2 роки тому

    Goddamit youtube, why can I give only 1 like?

  • @robotprogrammer2902
    @robotprogrammer2902 2 роки тому

    what theme are you using ???

    • @simonswiss
      @simonswiss 2 роки тому +4

      Night Owl by Sarah Drasner 👍

  • @masabmehmood8825
    @masabmehmood8825 Рік тому

    is there any way to handle checkout custom not redirect weburl to shopify website

    • @zenishshr
      @zenishshr Рік тому

      same couldn't find much. did you find a solution to this?

  • @returnZeroo
    @returnZeroo 2 роки тому

    Thanks for &middle;

  • @jasimahmed6222
    @jasimahmed6222 2 роки тому

    The url seems not working.

  • @ilirbajrami2902
    @ilirbajrami2902 Рік тому

    No cart?

  • @ttmmaacc
    @ttmmaacc 2 роки тому

    I'm not sure how you deal with that font in your IDE thats used for your classes. The lord is testing me lol

  • @kartikmistry6399
    @kartikmistry6399 2 роки тому

    thats VSCode but whats the theme used?

  • @MadHolms
    @MadHolms 2 роки тому +1

    can we get the source code for the project?

    • @xmorse
      @xmorse 2 роки тому +1

      Probably not because tailwind ui is a payed service

  • @martingalovic6097
    @martingalovic6097 2 роки тому

    anybody knows what's the font name used in his IDE?

  • @silvesterwali6565
    @silvesterwali6565 2 роки тому

    this react tutorial actually

  • @bitcoinshitcoin5116
    @bitcoinshitcoin5116 Рік тому

    more for next.js

  • @ducksquidbat8315
    @ducksquidbat8315 Рік тому

    Where do you get the api url???????
    half-baked tutorials are always my favourite

  • @Mischief1.6Ghz
    @Mischief1.6Ghz 2 роки тому

    Code plz

  • @valorant.mp4413
    @valorant.mp4413 2 роки тому

    Can you please share your before theme, font and settings?

  • @shanemur
    @shanemur Рік тому

    Tailwind UI extremely poor support for Next JS

  • @wutangpaul
    @wutangpaul 2 роки тому +1

    Came here looking for a solution for actual related products functionality.... this is just mocking it up, right?

    • @M4CARBINE556
      @M4CARBINE556 2 роки тому

      Did you ever figure out how to do related products? I'm building a store right now and would like to add that functionality to the wabsite.

  • @scriptkeeper8243
    @scriptkeeper8243 2 роки тому +3

    This is more of a reference for troubleshooting your own app vs. a proper tutorial as too many key steps are left out. You could make do scraping the structures from their demo site, but you'd better reference other projects if you're actually looking to build a demo. Shame he didn't just use their demo UI elements to build this vs. trying to push paid options...trying to build a demo here. If I was selling it, I'd pay for your really pricey UI kit there TW.....

  • @thomasbelard4501
    @thomasbelard4501 2 роки тому

    you have a french accent no ? ^^

  • @iJuce
    @iJuce Місяць тому

    my eyes hurt ong

  • @codernerd7076
    @codernerd7076 2 роки тому

    Sponsored by Shopify?!

    • @NeverCodeAlone
      @NeverCodeAlone 2 роки тому +1

      Just a framework example and not bad. Never worked with it but I think its the right thing to start your online business. What are you using for this usecase?

    • @simonswiss
      @simonswiss 2 роки тому +1

      Not even 😅

  • @sadiki8662
    @sadiki8662 2 роки тому

    I'm getting a FetchError: invalid json response body at xxxMY-SHOPIFY-DOMAINxxx reason: unexpected end of JSON input. This is really busting my head sinds I can't solve this even other people have looked at the code and can't seem to find the reason. Any idea or workaround for this?

    • @thisquietplace
      @thisquietplace Рік тому

      Having some strange issues as well, I wonder if it has something to do with the release of Hydrogen, will go that route instead