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

  Рет қаралды 121,761

Tailwind Labs

Tailwind Labs

Күн бұрын

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 жыл бұрын
This actually taught me GraphQL better than any Shopify videos I watched.
@Ss-zg3yj
@Ss-zg3yj 2 жыл бұрын
Learning GraphQL by watching Shopify and Tailwind videos? Genius.
@DaviAreias
@DaviAreias 2 жыл бұрын
Shopify tutorials generally suck lol
@mrshayshay21
@mrshayshay21 2 жыл бұрын
@@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)
@valtism
@valtism 2 жыл бұрын
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 жыл бұрын
Just brilliant. You covered and explained a plethora of tech there with a real world example with ease and superb clarity.
@braydoncoyer174
@braydoncoyer174 2 жыл бұрын
I'm here mainly for Simon's introduction fade outro.
@simonswiss
@simonswiss 2 жыл бұрын
Lol I definitely FADED after recording that marathon video, I was toast 😅
@returnZeroo
@returnZeroo 2 жыл бұрын
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 жыл бұрын
This is awesome to hear! Wishing you the best with your idea 👊
@Decatilinae
@Decatilinae Жыл бұрын
Amazing video...hope to see more advance Shopify and tailwind tutorials
@hot4mix
@hot4mix 2 жыл бұрын
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 жыл бұрын
Haha the magic "getStaticProps" delivery from the left side of the brain
@bulletdrop
@bulletdrop 2 жыл бұрын
I thought the google assistant on my phone acquired consicousness and started AI revolution haha
@ChadSolomon
@ChadSolomon 2 жыл бұрын
Gotta love those hidden sound effects. Epic video, thanks
@simonswiss
@simonswiss 2 жыл бұрын
Heh they're a lot of fun to add when editing 😅
@angeloliwanag2619
@angeloliwanag2619 2 жыл бұрын
Thank you so much. I really needed a starter guide
@chunli680
@chunli680 2 жыл бұрын
15:55 I think all KZbin tutorial videos should do this lol Thank you for the fantastic content!
@yashsolanki069
@yashsolanki069 Жыл бұрын
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.🙌
@simonswiss
@simonswiss 11 ай бұрын
Thanks Yash!
@JairoPy
@JairoPy 2 жыл бұрын
Amazing tutorial, thank you very much!
@tamrat_assefa
@tamrat_assefa 2 жыл бұрын
Learned a lot with this one. Thanks.
@huuphongcom
@huuphongcom 2 жыл бұрын
Love Tailwind videos, and Simons's intro.
@akamfoad
@akamfoad 2 жыл бұрын
Very well done, keep it up!
@kenyaseemenow
@kenyaseemenow 2 жыл бұрын
Perfect timing, I just started a project using this stack.
@simonswiss
@simonswiss 2 жыл бұрын
Haha that's awesome! I'd love to see what you come up with 🎉
@BTCruiser2011
@BTCruiser2011 2 жыл бұрын
Simply an amazing video
@Demonnof
@Demonnof 2 жыл бұрын
really needed this thanks!
@pjmanning
@pjmanning 2 жыл бұрын
Would love to see a Nuxt/Vue 3 implementation with Shopify/Swell as well :)
@the42nd
@the42nd 2 жыл бұрын
+100
@SidemenAndSomeFriends
@SidemenAndSomeFriends 9 ай бұрын
Nuxt Yes !
@M4CARBINE556
@M4CARBINE556 2 жыл бұрын
I feel like this left me with more questions than answers.
@asnaweabdulrahman6676
@asnaweabdulrahman6676 Жыл бұрын
Bro I really do appreciate you for this help, Thanks! I subscribed and Liked the video.
@valentinbenitobousquet6166
@valentinbenitobousquet6166 2 жыл бұрын
AMAZING, thanks. 🤞🏻
@techcheck3042
@techcheck3042 2 жыл бұрын
Wow.. Such a good video. Definitely subscribed 👌
@simonswiss
@simonswiss 2 жыл бұрын
Thank you! 🙏
@gocanto
@gocanto 2 жыл бұрын
amazing stuff!
@funkymag
@funkymag 2 жыл бұрын
Thank you, Simon!
@simonswiss
@simonswiss 2 жыл бұрын
You're welcome! 🙏
@How2Forex
@How2Forex 2 жыл бұрын
Nice person, tailwind lucky for having him 15:57
@malindaweerasinghe2501
@malindaweerasinghe2501 2 жыл бұрын
Nice one guys
@tiagoagm
@tiagoagm 2 жыл бұрын
This is perfect
@sebastian5100630
@sebastian5100630 2 жыл бұрын
amazing!
@dinhkhanh
@dinhkhanh 2 жыл бұрын
I know every stack in this video but still enjoy watching it.
@jtrenda333
@jtrenda333 2 жыл бұрын
How did you get to the graphql api? that bit of info would have been helpful.
@RianY2K
@RianY2K 2 жыл бұрын
this is good tutorial
@digitalbangladesh6977
@digitalbangladesh6977 Жыл бұрын
I love soft soft so so so so much!
@Tottinguero
@Tottinguero 6 ай бұрын
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...)
@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 жыл бұрын
Can you guys make a tutorial on the animated code block on tailwind home page?
@the42nd
@the42nd 2 жыл бұрын
Possible to share this code for a starting point?
@realtorBG
@realtorBG 2 жыл бұрын
awesome
@phantazzor
@phantazzor 8 ай бұрын
Une suite avec hydrogen remix would be cool
@siddharth686
@siddharth686 Жыл бұрын
How do we go about getting a confirmation response once the checkout is completed?
@TheRealGloo
@TheRealGloo 2 жыл бұрын
where did you get the API_URL from? it didnt work for me when I changed it to fit my store name
@alexthewebdesigner1856
@alexthewebdesigner1856 10 ай бұрын
@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.
@closernear5058
@closernear5058 2 жыл бұрын
transformedSrc is deprecated ??
@debjitbiswas1552
@debjitbiswas1552 2 жыл бұрын
The demo url is missing???
@eli007s
@eli007s 2 жыл бұрын
Lemme know when a NuxtJs tutorial is available
@zenzmatic5744
@zenzmatic5744 2 жыл бұрын
does anyone know can you go from development to live website what are the steps?
@yolla_4
@yolla_4 Жыл бұрын
which theme and font you're using???
@Cyandog
@Cyandog 5 ай бұрын
Was the checkout page already implemented or does Shopify handles that through the link returned from the GQL query?
@zenzmatic5744
@zenzmatic5744 2 жыл бұрын
how can i integrate printful with next.js and shopify storefront
@elleryfamilia8291
@elleryfamilia8291 Жыл бұрын
what's the music? love it at 18:30
@TutoDS2014
@TutoDS2014 2 жыл бұрын
Hi Can make a video using sass? I'm a lot of problems using Tailwind on my nextjs project with sass
@guilhermemm-dev
@guilhermemm-dev Жыл бұрын
code repository please?
@sandeepgupta2476
@sandeepgupta2476 Жыл бұрын
don't we have a rest api for storefront API
@BigScaryMonster
@BigScaryMonster 2 жыл бұрын
This is beautiful. Why would you ever want to live in a #NoCode world?
@user-ut4uk9mm8c
@user-ut4uk9mm8c Жыл бұрын
21:05 - Here we go!
@NeverCodeAlone
@NeverCodeAlone 2 жыл бұрын
This is magic!! Thx for your passion. Are you fasten your videos?
@simonswiss
@simonswiss 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 ;)
@adimaralimuddin96
@adimaralimuddin96 Жыл бұрын
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.
@nesabadiano448
@nesabadiano448 2 жыл бұрын
Hi Simon where is the process of getting the Access Token?
@simonswiss
@simonswiss 2 жыл бұрын
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!
@roshanican504
@roshanican504 2 жыл бұрын
what's your font in vs code ?
@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 👍
@nesabadiano448
@nesabadiano448 2 жыл бұрын
Hi Simon! how did you get the shopify API path?
@simonswiss
@simonswiss 2 жыл бұрын
See my comment just above 👍
@sofiaguardia1840
@sofiaguardia1840 9 ай бұрын
@@simonswiss where?
@DeveloperJunaid
@DeveloperJunaid 10 ай бұрын
Amazing Video so far
@Troy-ol5fk
@Troy-ol5fk Жыл бұрын
the demo link is broken
@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 5 ай бұрын
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?
@colynatrockethomes2595
@colynatrockethomes2595 2 жыл бұрын
Why do you need the env vars to be public if they are only used at build time?
@simonswiss
@simonswiss 2 жыл бұрын
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!
@masabmehmood8825
@masabmehmood8825 Жыл бұрын
is there any way to handle checkout custom not redirect weburl to shopify website
@zenishshr
@zenishshr 11 ай бұрын
same couldn't find much. did you find a solution to this?
@robotprogrammer2902
@robotprogrammer2902 2 жыл бұрын
what theme are you using ???
@simonswiss
@simonswiss 2 жыл бұрын
Night Owl by Sarah Drasner 👍
@ilirbajrami2902
@ilirbajrami2902 Жыл бұрын
No cart?
@MadHolms
@MadHolms 2 жыл бұрын
can we get the source code for the project?
@xmorse
@xmorse 2 жыл бұрын
Probably not because tailwind ui is a payed service
@kartikmistry6399
@kartikmistry6399 2 жыл бұрын
thats VSCode but whats the theme used?
@simonswiss
@simonswiss 2 жыл бұрын
Night Owl!
@martingalovic6097
@martingalovic6097 2 жыл бұрын
anybody knows what's the font name used in his IDE?
@joeldaros
@joeldaros 2 жыл бұрын
Fira code?
@simonswiss
@simonswiss 2 жыл бұрын
Dank Mono!
@ttmmaacc
@ttmmaacc Жыл бұрын
I'm not sure how you deal with that font in your IDE thats used for your classes. The lord is testing me lol
@jasimahmed6222
@jasimahmed6222 2 жыл бұрын
The url seems not working.
@radian825
@radian825 2 жыл бұрын
Goddamit youtube, why can I give only 1 like?
@bitcoinshitcoin5116
@bitcoinshitcoin5116 Жыл бұрын
more for next.js
@Mischief1.6Ghz
@Mischief1.6Ghz 2 жыл бұрын
Code plz
@silvesterwali6565
@silvesterwali6565 2 жыл бұрын
this react tutorial actually
@returnZeroo
@returnZeroo 2 жыл бұрын
Thanks for &middle;
@ducksquidbat8315
@ducksquidbat8315 Жыл бұрын
Where do you get the api url??????? half-baked tutorials are always my favourite
@valorant.mp4413
@valorant.mp4413 2 жыл бұрын
Can you please share your before theme, font and settings?
@thomasbelard4501
@thomasbelard4501 2 жыл бұрын
you have a french accent no ? ^^
@shanemur
@shanemur Жыл бұрын
Tailwind UI extremely poor support for Next JS
@scriptkeeper8243
@scriptkeeper8243 2 жыл бұрын
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.....
@wutangpaul
@wutangpaul 2 жыл бұрын
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.
@iJuce
@iJuce 22 күн бұрын
my eyes hurt ong
@codernerd7076
@codernerd7076 2 жыл бұрын
Sponsored by Shopify?!
@NeverCodeAlone
@NeverCodeAlone 2 жыл бұрын
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 жыл бұрын
Not even 😅
@sadiki8662
@sadiki8662 Жыл бұрын
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
Building a command palette with Tailwind CSS, React, and Headless UI
38:00
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 263 М.
YouTube's Biggest Mistake..
00:34
Stokes Twins
Рет қаралды 65 МЛН
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 118 МЛН
Translating a Custom Design System to Tailwind CSS
10:10
Tailwind Labs
Рет қаралды 113 М.
Shopify built a JS Framework // Hydrogen First Look
5:08
Fireship
Рет қаралды 295 М.
Building a YouTube Thumbnail with Tailwind CSS
14:17
Tailwind Labs
Рет қаралды 27 М.
Glowing Background Gradient Effects with Tailwind CSS
9:13
Tailwind Labs
Рет қаралды 83 М.
Shopify ECommerce Store with React & Next JS | BuilderIO
46:12
JavaScript Mastery
Рет қаралды 136 М.
how i design one product stores using AI.
32:05
taysthetic.
Рет қаралды 72 М.
Adding Tailwind CSS to an Existing Project
17:48
Tailwind Labs
Рет қаралды 33 М.
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 1,5 МЛН
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 1,5 МЛН