How I Create Modern E-Commerce Stores with Next.js

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024
  • Adding payments to your store can be scary. What if you do something wrong? Well, it's actually not hard. Here's an approach I find really cool, and getting set up is pretty easy with this template too. Especially for freelance projects this is great.
    Setup guide: vercel.com/doc...
    -- my links
    My SaaS (closed beta, not public yet): www.splitter.gg/
    My Discord: / discord
    My GitHub: github.com/jos...

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

  • @johnychinese
    @johnychinese Год назад +189

    Hey I never do this but would be really glad if you do a full project on how to use shopify with nextjs 😊

  • @youssefbedhief2050
    @youssefbedhief2050 Год назад +117

    I think it would be very interesting if you do a full project on how to create an e-commerce app with shopify and next.js 😁

    • @JohnRodDondoyano
      @JohnRodDondoyano Год назад +2

      Yes!

    • @joshtriedcoding
      @joshtriedcoding  Год назад +12

      oh hell yeah. I think many people are used to stripe for this, but credit cards are not nearly as common elsewhere as in the US

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

      Just had the same thought 👍

    • @SamirElias-ru1td
      @SamirElias-ru1td Год назад

      bro make a tutorial about this is fire !

  • @elhaambasheerch7058
    @elhaambasheerch7058 Год назад +32

    Would love to see a big e commerce project with Shopify & next on this channel, this seems really really good!

  • @PlayhouseMediaGroup
    @PlayhouseMediaGroup Год назад +10

    This is way cool,
    If you can do a full tutorial for an online shop with this

  • @ahbegnueg
    @ahbegnueg Год назад +12

    Hey there Josh!
    Thanks for your informative videos! I would be really excited if you could upload a full video where you build a shop exactly in this manner. I love how it's so fast, allowing customers to quickly access the product page without waiting. Since I'm not familiar with all the steps, a comprehensive project video would be fantastic, and it would greatly assist me (and probably many others) as well.
    If you could construct a shop from scratch, starting from zero, I'd be extremely delighted if you could showcase everything. I'm eager to learn how to program a shop like this, and I can only do it with your guidance!
    Grüße 😁

    • @joshtriedcoding
      @joshtriedcoding  Год назад +5

      Appreciate the suggestion man, seems like many people would really like this! Grüße zurück :)

  • @agoodmansaid
    @agoodmansaid 7 месяцев назад

    Thanks man. Most channels just show long tutorials for doing this but dont explain how it works. You're the best!

  • @jlndev
    @jlndev Год назад +4

    Been doing it like this aswell but there were always 2 things that bothered me:
    - Persisted login state (between the frontend and the hosted checkout page)
    - Hooking up to shopify builtin analytics page.
    Did you figure that out?

  • @fehlercode03
    @fehlercode03 Год назад +3

    that's probably the best and most user friendly way to implement this functionality :D

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

    Hey Josh, love all your videos which are crisp and on point. Would love some in-detail videos like tutorials or projects like creating an e-commerce app using Shopify and nextJS.

  • @lovrozagar3729
    @lovrozagar3729 Год назад +2

    Please do a full tutorial for this kind of project

  • @shadowcodr
    @shadowcodr 5 месяцев назад +3

    What's the point of building your own UI and paying for Shopify? Why not just embed Stripe at that point and not pay Shopify?

    • @nested9301
      @nested9301 4 месяца назад +1

      you are paying for the admin dashboard + stripe you have to do some logic to get it done and in the long run shopify is scalabe and battle tested , not like your crappy code

  • @demicoderr
    @demicoderr Год назад +3

    Please Josh can you do a full tutorial on this?

    • @joshtriedcoding
      @joshtriedcoding  Год назад +5

      yeah dude seems like many people are interested

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

      @@joshtriedcoding we would really appreciate this 🔥✨

  • @rowsncols
    @rowsncols Год назад +2

    Thanks man It's so crazy how I got my first client a few days ago requesting an e-commerce, and first your 1,000$ video then this! must be a sign

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

      wish you all the best for your first gig!!

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

      @@joshtriedcoding thank you brother 🙏

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

    Bro! You're a lifesaver, my job is asking me to redo their entire ecommerce shop, from the code to design, with a shopify backend (and I already know NextJS, Tailwind, Typescript, etc). If you do a full project video that would help me (and judging by the comments) and others so much. PleasE!~

    • @adejesaru
      @adejesaru 9 месяцев назад

      Hey! That's pretty much the situation I'm in right now! Were you able to solve it? I'm looking for exactly that

  • @tuedodev9021
    @tuedodev9021 9 месяцев назад

    I like your videos. It´s an older video, but just one thought. Being myself working with Next JS (and despite some concerns I like it) going with shopify as CMS I would definetely consider Remix as JS frontend instead, because the guys from shopify buyed Remix end of 2022, so in the long run I guess it´s easier in combination with Remix I assume. Or in other words: Changing the frontend later is much easier than changing your CMS. Keep the vibe going.

  • @itsdrvgo
    @itsdrvgo Год назад +3

    "Big ass Tshirt" - Proof that Josh watched Fireship's latest video

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

      i actually haven't, did he use the same example?

  • @lukem121
    @lukem121 Год назад +6

    Would be more cool to see something like Medusa JS as its free/open source

    • @joshtriedcoding
      @joshtriedcoding  Год назад +2

      I believe this does have an existing medusa integration, same with swell. I just personally prefer shopify

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

    i dont undertsand where the CMS come into play in this setup? i see your storing the products and sales directly in shopify, i dont see the need of an CMS.. can you explain this please?

  • @scuffey2608
    @scuffey2608 Год назад +2

    hey Josh great content!! could share (maybe a video) on how you handle design for your freelance work? do you work with a designer? design your self? or ask the customer to bring their own design?

    • @joshtriedcoding
      @joshtriedcoding  Год назад +3

      Sometimes they already have an idea or even a designated design team. If not, using TailwindUI and shadcn/ui works wonders for creating a beautiful UI quickly

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

    heyy. are we still getting a full video for this please josh

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

    everything was nice until the success url for the payment process, it redirects you to
    shopify’s default template theme website builder, Josh if you found a solutions please tell me or any of the you guys could help me to solve this

  • @jessicafithrase8259
    @jessicafithrase8259 9 месяцев назад

    How can you hide the 'Continue Shopping' button on your Thank You page?

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

    How would you approach building a portfolio/company website with multiple subpages, blog, contact forms, etc. with everything being customizable via CMS? What CMS to choose? Go headless or use “good” old wordpress + next? Start with a template or create everything from scratch?

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

      Hi, I was also interested in finding the best way to do it in 2023. After some research, I think Astro for frontend + a headless CMS like Strapi is the way to go. You can even use markdown files if you will have a project without the need for a CMS.

    • @Laam.333
      @Laam.333 Год назад +1

      I've built several sites like this for non tech-savvy clients and I've found the best / most customizable CMS to use with the Next app router is Sanity. You can quickly setup an embedded studio inside a route in your app, define your schemas and you're good to go. For contact forms / newsletters react-hook-form + sendgrid is a good option, maybe even react-email + resend if you're mainly doing transactional emails. If the client is tech savvy you could go the markdown route and use contentlayer + mdx.

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

      wordpress + react is a totally valid approach. I've usually used sanity cms for freelance work in the past, it's pretty intuitive for clients and you can query data in a graphql-kinda way. But there is no typesafety unless you use some additional modules, there might be better options

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

    Also Shopify offers Hydrogen, a framework built upon remix, designed for constructing storefronts.

  • @meitoli
    @meitoli 6 месяцев назад

    i think this will work for a small-medium store. Shopify does not support multichannel POS very well. Any ideas on that case?

  • @stefanflaschko
    @stefanflaschko 6 месяцев назад

    Hmm. What's the CMS for if the products are in shopify?

  • @amorto3420
    @amorto3420 8 месяцев назад

    Thanks Josh! I was looking for a video like this, just to make sure if I should use shopify when creating websites with modern frameworks like nextjs. Since I always saw people using shopify with templates, I was wondering if any client would even want to pay extra for a custom build.

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

    sorry I wanted to add, versus the hydrogen remix version starter project do you get similar project? with pre-build SSR components/components? I'd like to keep going with next and not remix but I'd like to know the pros and cons besides having to learn remix

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

    Awesome content. The amount of work you saved me is amazing. Thank you Josh for your hard work

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

    Can you create user accounts linked to the orders,authentication and tracking with this implementation?

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

    So i like the route youve gone but is it possible to load that checkout page as a modal so you dont redirect the user away from the store. if anyone knows if thats possible or even a good idea. Id love feedback

  • @Louis-qo7tf
    @Louis-qo7tf 7 месяцев назад

    comment changer les photos des produits sur l'app traduction CMS shopify

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

    Could you explain difference between invalidate queries and refetch? Their pros and cons and which is better?

  • @thbtse
    @thbtse 7 месяцев назад

    Hi Josh, this video use about Shopify+ Next js for getting benefit on headling payment. And also 1 video using payload+stripe+Next. What are the pros and cons? As I know, payload is free but Shopify is $89 per month but with better storage management. Any further discuss about this? Thanks

  • @devhamdani
    @devhamdani 7 месяцев назад

    Hi, Can you tell me that if create a theme using this stack would i've to pay both for shopify and hosting service or not?
    Please answer my question if anyone knows?

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

    Josh, please do a headless Shopify/Bigcommerce full project tutorial with auth, payment and deployment. Currently there is no in-depth tutorial for this anywhere on youtube.
    Thanks 😀

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

    Sorry, I speak Spanish and I'm trying to understand, exactly in the shopping cart part, does it mean that the products are saved in a database? That is, wherever that user logs in, will they be able to see their products?

  • @martinkling3266
    @martinkling3266 8 месяцев назад

    Hey Josh, great video! I was wondering why you are using Shopify when you as an experienced nextjs dev can set up an own dashboard for products and orders. What's the reason behind this? Im currently building an ecommerce store and just stumbled upon your video.

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

    Hey Josh, I liked the video, but is there a way to automate the shipping after the client has bought the product?

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

    The same can be done with Square Space too :D. Great video Josh!

  • @neodinok-it3ym
    @neodinok-it3ym Год назад

    Gread video. A full-stack tutorial on Next.js store would be much appreciated

  • @Ja-rz9fq
    @Ja-rz9fq Год назад

    Great idea, unfortunately Stripe is not supported in my country (Bosnia). Are there any other solutions for creating a business, shop or whatever its called on Shopify without Stripe, i mean is there any alternatives like credit cards or stg like that...

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

    Love your videos.
    I recently came across a headless backend for ecommerce called swell, any chance you could do a tutorial on how to integrate that with next.js 13, that would be amazing !!!

  • @classicmanchristian
    @classicmanchristian 6 месяцев назад

    Do you by chance know if you can do the same thing just using square instead of shopify?

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

    Would you please show us how to host it locally ?

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

    are there any way to use own api withot shopify

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

    hey Josh, i am trying to make my Next.js application official, i bought the domain but i don't know what to write in .htacess so that when user enters my domain it should render page.js and so on.

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

      no idea what you're doing tbh, never heard of that. For Next deployment I use both vercel and amplify, they make it very easy to get up and running

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

      okay man thanks, can i somehow buy or connect my domain to the vercel when i deploy my application ?@@joshtriedcoding

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

    Hi Josh, great video.I am still new to E-commerce websites, can I know if this service from shopify is paid or not ?

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

    Can you please make a video with Directus. Am trying to use it as a quick way to build fast

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

    Would love to see a full tutorial on how this can be done.

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

    What are you're thoughts with medusajs?

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

    Yup, did this exact method but payment was fulfilled with crypto on the frontend and then shipping costs are handled by the shopify hosted page

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

    How can the customer view the purchase status, or purchase history, and track the orders?

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

    what's the cost involved with shopify?

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

    Can you make a tutorial on this pleaseeeeee

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

    stripe and all is cool but i always wonder how do people actually implement their own custom gateways and all... i once tried to do it and never came close L

  • @rod6722
    @rod6722 9 месяцев назад

    How much do you typically charge for an e-commerce store like that?

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

    Which cms to use?

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

    What payment gateway Are you using?

  • @cosmo5805
    @cosmo5805 Год назад +2

    Love your videos! Can you make a video about how to structure a scalable, complex, enterprise-level app using Next.js? I find the Atomic Design Methodology very interesting. Is it scalable? Why or why not? I think it would make a great idea for a video.

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

    Why you need Shopify and a CMS? Can’t you just make api calls directly to Shopify?

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

      yeah that's what we're doing here, shopify is the cms we get all the products and collections from. Might be a bit unclear from the diagram, I just meant their "CMS" functionality

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

    Hi josh I wonder what you say about medusajs. :)

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

    That’s one of the approaches which sounds nice but don’t really work in practice. In that checkout page if user click back they face up wtih your shopify online store.

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

    Hey, shopify is a cms so why did you mention shopify and cms separately in the flowchart? A bit confused.

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

    Wow very cool! I’ve only built a SAAS with one type of membership so, this sounds more robust eccommerce! I’m sure this is one good way , Wordpress has woo commerce , I wonder if there are other good platforms/ services that we ca use to achieve this with nextjs ?

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

    I know its not the case ,but Shopify don't work in many countries ,like Belarus for example ,users cannot pay (

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

      oh interesting, which payment providers do they usually use?

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

      Woocommerce with bank extension ,this is honestly depressing ,because stripe and Shopify is great ,but not working for the Eastern Europe ,there is no good alternatives @@joshtriedcoding

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

    how did you get the codebase of the project?

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

    Great topic. Can I could use this stack for a ticket sales platform for music festivals? It is common for many customers to compete for a small amount of tickets as a phase ends. I want to harness the power of nextjs and the thoroughness of shopify to securely handle many users paying at once. I also want to implement ticket reservation when a user adds to cart, and release tickets if a user takes too long to complete checkout. Is this possible with headless shopify? If someone could let me know that'd be great. 👌

  • @jp.cortes
    @jp.cortes Год назад

    Nice video Josh. Beside Stripe I've been using PayPal as payment option

  • @GfoxSim
    @GfoxSim 9 месяцев назад

    This is really cool and simple. Wow.

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

    I don't get this. Surely with this you're still paying for Shopify (which is expensive) and not making use of what that money gets you (all the templates, pro made front-end etc). Or is the Shopify API free/cheap to use?
    Thanks

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

    Do we need to purchase shopify plan or it is free to use the api?

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

      not free

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

      Earlier it was free but now it doesn't

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

      It's not free unfortunately

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

    What about the authentication ?

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

      you can handle that however you want, like next-auth or a dedicated service

  • @atuljain7637
    @atuljain7637 4 месяца назад

    This was a very high level video, it would be better if you would have explained how you actually did the setup of this project.

  • @BeyondLegendary
    @BeyondLegendary Год назад +5

    Impressive, very nice. Let's see Paul Allen's e-shop.

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

      I've never gotten this joke. What does it mean?

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

      OMG, It even has a watermark 😓

    • @joshtriedcoding
      @joshtriedcoding  Год назад +2

      oh man tax compliance, why is Paul Allen starting to sweat?

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

      @@joshtriedcoding btw thanks for the sneak peek of the vercel integration with shopify! this is a game changer for shopify devs!

  • @shreyas.sihasane
    @shreyas.sihasane Год назад +1

    Please make a full stack app with next js 13, and use unused tech stack till now. Please use new technologies

  • @talleyrand9530
    @talleyrand9530 3 месяца назад

    Fun fact: The cart now uses Optimistic hook

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

    Josh, please create a project on this concept, it's nice

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

    Video about e commerce in next js that's what i wanted always to see

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

    What tool are you using to make the diagrams?

  • @2012Accounts
    @2012Accounts Год назад

    How's the state of credit cards frauds? I've been told by other devs to avoid it as much as possible because dealing with it is a pain in the ass. I have no idea cause I've never tried.

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

      oh yeah it can be a pain. Shopify has built-in fraud analysis afaik, rating the fraud likelihood

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

    given allot can go wrong implementing payments on your own wouldn't it provide some value to create a tutorial implementing it from the start?

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

    Hydrogen looks really cool too, but I couldn't seem to try it out on a dev store without paying so I said screw that lol

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

    Hey Josh you could run a small project integrating Shopify + NextJS from scratch with cart functionalities more in details =D Thanks!

  • @Shawn-Mosher
    @Shawn-Mosher Год назад

    Definitely building a store. I’m using Nextjs, Woocommerce and Stripe

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

      I tried but facing some difficulties in some queries. Paused atm

    • @Shawn-Mosher
      @Shawn-Mosher Год назад

      @@imkir4n what queries? Are you using the rest api, woographql, or store api?

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

      @@Shawn-Mosher woographql + wpgraphql

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

      what do you recommend using?@@Shawn-Mosher

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

    please make a full tuTORIAL ON HOW TO DO I T

  • @fatihyurek-c5m
    @fatihyurek-c5m Год назад

    Hey Josh;
    Appreciate for all efforts getting hard things to easier for us. I have a problem with last nextjs version. Could anyone face with this problem. My website showing html chunks on the browser if left for a period of time.

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

    I created one and am handling everything myself with a strapi backend and mpesa checkout

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

    JOSH WE NEED THE FULL TUTORIALLLL

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

    I think you should complete toutorial about shopify clone with crm

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

    A comprehensive video on webhooks in NextJs will be very helpful. I was looking for one and couldn't find one. BTW I love the sound mixing of your videos, it is always so on point.

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

    Creating a backend for an e-commerce is very very very hectic

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

    But shopify is paid right ?

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

    Let's go a new video, thanks bud

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

    Hey josh i have been watching your videos constantly from a long time 🙂
    A detailed video on the file structure of this next.js commerce template please 🥺
    In which we can understand the code

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

    Hey please make a vedio on Stripe payment using latest nextjs for production level applications. 🙋

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

    Man you are the best ❤

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

    tutorial on this please 🙏🏼

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

    ok it is very interesting BUT it would be more interesting if you provide us an E-com tutorial how to build, thank you

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

    waiting for video full course.