How to Build a Shopify App with Node and React

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • In this video, Jennifer will show you how to use the Shopify App CLI to create a simple app that access products from a development store and can run in your local environment. She’ll walk you through how to:
    - install and set up the App CLI
    - embedded your app into the Shopify admin
    - build an interface with Polaris
    - add React components to your app
    More info on how to build a Shopify App with Node and React on our developer documentation: bit.ly/2Y9pYWD
    Learn how to install the App CLI on the GitHub page: bit.ly/3aIbYbL
    More info on App Bridge: bit.ly/321LC02
    The Polaris design system: bit.ly/343n9ud
    Contents:
    0:00 Introduction
    1:20 Using the Shopify App CLI
    7:18 Creating an app
    14:40 Building a UI with Polaris
    21:10 Accessing React components
    26:30 Update resource picker
    --------------------------------
    Subscribe to our channel for more videos about developing and designing ecommerce stores, apps, and themes with Shopify » / shopifydevs
    Looking for more information about developing on Shopify check out www.developers.shopify.com and shopify.dev/
    Connect with us on Twitter » shopifydevs
    Launch your own online store by visiting Shopify and starting your free trial » bit.ly/VisitShopify
  • Наука та технологія

КОМЕНТАРІ • 182

  • @ephraimmulilo7098
    @ephraimmulilo7098 3 роки тому +180

    For some reason, I decided to skip this tutorial at the start of my development journey and just brute force my way to making a Shopify app. A few weeks later I came back and finally watched the full thing and boy, most of the stuff I was struggling with are made so much easier in here. Don't skip the tutorial people.

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

      Thanks for the helpful advice.

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

      You are absolutely right 🤣

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

      thanks for sharing!!

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

      i am skipping for her faking a deep voice or trying to speak sexy whatever? don't know which part of US this style of speaking developed but its very irritating to listen..

  • @jonathangardn
    @jonathangardn 3 роки тому +30

    One of the best tutorials about building Shopify Apps. The CLI looks great, the biggest struggle of setting all up it's over with this.

  • @mmoriarty
    @mmoriarty 3 роки тому +5

    What a fantastic explanation. Thank you, Jennifer!

  • @codewithpaul9556
    @codewithpaul9556 3 роки тому +1

    Really great video. The CLI is very intuitive, so useful to have a component lib too. Looking forward to building Shopify Apps.

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

    Much appreciated, this cleared most of my questions on how to start an app with react/Next with Shopify. Thanks for the great video. keep up the good work

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

    This was super helpful! I've been scratching my head trying to figure this out for ages but this is the first tutorial that's actually worked.

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

    Thank's for sharing this right when I needed it!

  • @ananthvankipuram4012
    @ananthvankipuram4012 3 роки тому +1

    Actually very nicely done. I had been jumping from one tutorial to another and even went down the rabbit hole of using OSISET laravel wrapper for Shopify(BIG mistake!), and finally found this gem. They should push more videos. Perhaps, another future video on a detailed how-to on Polaris and Apollo?

  • @ringreen6165
    @ringreen6165 3 роки тому +4

    Thank you for this tutorial. What's really interesting for me is the same workaround, but in TypeScript.

  • @ProjectAutism
    @ProjectAutism 3 роки тому

    I really enjoyed this tutorial. Thank you so much for creating this for the user community.

  • @l4webdesign186
    @l4webdesign186 3 роки тому +4

    Such a superb tutor! Thanks for this useful and understandable tutorial

  • @miguelsolis1839
    @miguelsolis1839 3 роки тому +1

    This was extremely helpful! Thank you!

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

    Thanks Jennifer, great video. I had the time of my life and I never felt like this before.

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

    Perfect, thank you for your clear understanding of how and where to start in my Shopify App journey.

  • @barrettwilson4750
    @barrettwilson4750 3 роки тому +1

    Amazing info! Love this.

  • @karimnaufal9792
    @karimnaufal9792 3 роки тому

    Awesome intro, thank you!

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

    I like Shopify App Bridge and Polaris when working with React pages. It's a year late, but thank you for this video.

  • @J-HAYER
    @J-HAYER 2 роки тому +2

    Thank you for this tutorial. A TypeScript Starter Kit would be awesome!

  • @michelkant
    @michelkant 3 роки тому +5

    Great video with swift explanation on how to set up. Looking forward to more like this, for example billing. Maybe a series on building an actual app from scratch with everything included? That would really help to get a good idea 💡 on how to move forward. I'd look for intermediate coders as a target so not to spend too much time on react/node basics. Theres other channels for that. 👍 In any way, please keep going like this 👌 👌

  • @vjnvisakh
    @vjnvisakh 3 роки тому

    awesome tutorial. loved it

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

    Shopify never fail to disappoint me

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

    Fantastic info!!! Very cool for developers….

  • @xingyahao4106
    @xingyahao4106 3 роки тому +4

    Very informative! Would CLI comes with ts and react hook optionals in the future?

  • @peterdaze1
    @peterdaze1 3 роки тому +3

    Great tutorial Jeniffer! , question, I want to give this a try so, if I'm building a site for a client, should i use their credentials to create the Partner's account, or is it more a thing of creating the account then creating different stores for different clients and then give them the credentials for the store.

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

    Hello Jennifer. Thank You, Very Much, for the video tutorial. Really appreciate. You were great, very informative and professional in Your presentation. One of the few video tutorials where the code actually worked. I think I'm in Love. Just kidding. I also read some of the comments below. While some of them were on point, requesting additional elaboration upon GraphQL requests, ..., as a teacher, I also understand the importance of staying with Your intended focus of instruction. Kindly, I humbly request, that You respond to the comments by continuing Your excellent approach to presenting the video tutorials and provide more videos related to the comments and requests below, including promises, array data extraction/manipulation and UI Development. Thanks, again, Very Much.
    Most respectfully submitted. P.s. You will never be able to please anyone. You're Great! Thx

  • @Archalia
    @Archalia 3 роки тому

    Thank you for the video. In this case you are displaying content in the Admin dashboard of shopify, how do you add content within the storefront directly ?

  • @DanteS-119
    @DanteS-119 Рік тому

    Interesting that resource picker takes in a type of string... this would really benefit from TS, or at least externalising that sort of thing into a constant to be imported.
    I wonder if you can now use functional components, as this way of doing things doesn't let us take advantage of some "newer" (now old, actually) React features as hooks etc. I will check the docs

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

    That oauth flow looked effortless. We've been struggling to get our app approved with a React frontend and Dotnet Core backend, because the oauth flow works for us but doesn't work for the app approvers. Could the next video talk more about the oauth flow please?

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

    very informative session, i have a query regarding the resource picker, How can we list the preselected products in the resource picker..?

  • @karimnaufal9792
    @karimnaufal9792 3 роки тому +3

    Great video! A continuation to that tutorial would be awesome, i.e. How to connect to the GraphQL Admin API, does it have to be through getServerSideProps, or a React Context, or what?

  • @DgeoDev
    @DgeoDev 3 роки тому

    Great tutorial !!! but Graphql no access on theme assets :( it's not possible too create snippet in the theme obliged to additionally use shopify node api

  • @zathkal4004
    @zathkal4004 3 роки тому

    Wow..nice one thank you (:
    How can I import a csv product file into such an app and filter through it with check boxes ?
    Thanks in advance

  • @MrHotChocolate
    @MrHotChocolate 3 роки тому

    Great video. Will you have any videos dealing with billing and app subscriptions?

  • @cmstudio8682
    @cmstudio8682 3 роки тому

    This is insane!

  • @Martin6724
    @Martin6724 3 роки тому +5

    Can we pleaseeee get a video for working with extensions, Argo, and/or the new Shopify Subscriptions API!!!

  • @RaselAhmed-yo5mv
    @RaselAhmed-yo5mv 3 роки тому

    @ShopifyDevs Is there any full tutorial of the Shopify-Node-React app?

  • @superwebdevs6427
    @superwebdevs6427 3 роки тому

    Would it be possible to install CLI with choco package manager in future ?

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

    Hello, I have a question, how to change or add a new "HOST" in the ".env" file? What are the power shell or cmd commands for a new ngrok hosting address? Mine expired since i'm currently on a free plan by ngrok. Thank you for all answers.

  • @PappenbergerApps
    @PappenbergerApps 3 роки тому +3

    Great tut! Could you guys also make a video about implementing App Bridge in this kind of setup? It's difficult for many I think.

    • @jrwebapps2425
      @jrwebapps2425 3 роки тому

      Hey, have you manage to find any tutorials on implementing app bridge to make app load faster? I'm struggling to find one.

  • @ibrahemtaha8177
    @ibrahemtaha8177 3 роки тому +1

    Thanks for sharing you video with us! could you please share more video like that but with Hooks, and maybe Redux? Many Thanks

  • @fevicoI
    @fevicoI 3 роки тому +1

    Btw seems like ngrok tunnel is causing an issue and nothing is rendered inside the demo store. Please help. How can we bind this to 0.0.0.0 or, external IP instead?

  • @groovebird812
    @groovebird812 3 роки тому +1

    Hi, how can i handle Updates of my App? The App is live and the url's where i host the app are registered in the backend but i have to change the url if i develop locally on my computer.

  • @Spectraevil
    @Spectraevil 3 роки тому

    Can't I use the shopify cli to create normal nodejs boilerplate code? As I don't want to use react, I want to use Angular or Vuejs.

  • @dorjsurenenhbold6400
    @dorjsurenenhbold6400 3 роки тому

    Hello nice video but I have a question. I am doing an app that my store user able to customize the product. So can i deploy my app at a custom domain and the user interact with it on a new page?

  • @malikbrahimi7504
    @malikbrahimi7504 3 роки тому +1

    Hey Jennifer, thanks for the tutorial! Why exactly do we need to use Koa when we can use the Next.js API routes?

    • @malikbrahimi7504
      @malikbrahimi7504 3 роки тому +1

      Also is there a reason to use Next.js over CRA? I'd imagine because the app is embedded you'd want to avoid problems with the URL routing in an SPA as well as avoid issues with CORS but I'd appreciate an explanation.

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

    Can this work on only on Visual Studio Code, or can it also work on Intellij.

  • @is-sam
    @is-sam 2 роки тому

    Can we do the same thing with Angular or is it mandatory to use React ?

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

    Hello sir/mem, is there any chance you can show us how to display app in frontend product detail page like small button or something?, i am doing a lot of R&D but not getting proper results.

  • @fevicoI
    @fevicoI 3 роки тому +1

    We are using a dedicated server for testing. We don't need Ngrok as it rate limits heavily and that leads to issues. How can we enable this on the 0.0.0.0 interface without breaking anything?
    Nice tutorial btw!

  • @joshbedo8291
    @joshbedo8291 3 роки тому

    @ShopifyDevs can you cover how to deploy the Next.js Polaris app to say AWS? Not finding a lot of resources

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

    Hi, I'm missing the folder pages in my project, would you know why please? Thank you

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

    Thanks a lot for the good tutorial.
    Could you please post tutorial about how to "shopify node deploy"?

  • @samirkhanalofficial
    @samirkhanalofficial 3 роки тому

    will shopify come up with flutter sdk ?

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

    Great Video.
    Just a small doubt. Once I select products like this, I would want to save them somewhere. Can you tell me how to save this ? What are the approaches ?

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

    Very awesome video tutorial about Shopify app dev. Shopify-CLI tool is not so friendly with windows users. 😆

  • @ayoalabi6921
    @ayoalabi6921 3 роки тому

    Thanks for this video, its been very helpful...m I am wondering if anyone could direct me to materials that can help me REST API calls from within the , instead of using GraphQL, I will like to also use some REST API resources that are not yet in graphql. Thank you

  • @wackodreamer
    @wackodreamer 3 роки тому

    Would anyone know how to get data from one store and transfer it to another?

  • @dusanjovanovski8752
    @dusanjovanovski8752 3 роки тому

    Do you have any news when Polaris will be open for Angular?

  • @omotoyosiadegbite6966
    @omotoyosiadegbite6966 3 роки тому +1

    kept getting this error {The PerformanceObserver does not support buffered flag with the entryTypes argument.
    } pls help!!!

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

    Can I use Class components instead of React Hooks or functions?

  • @ryanh3457
    @ryanh3457 3 роки тому +1

    How do you make a request to GraphQL?

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

    2:30 rip
    great tutorial really thorough

  • @prasheelchadotra7407
    @prasheelchadotra7407 3 роки тому +1

    Ngrok not found while starting development server again what to do?

  • @vincentleeuwen
    @vincentleeuwen 3 роки тому

    For me this already goes wrong in 31:53. I'd like to create a private app but it wont open in my partner dashboard...

  • @andrewrico8321
    @andrewrico8321 3 роки тому

    which vs code theme is that one?

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

    How can I store the access token in the database and if I have in database I don't want to auth so how can I skip auth process if I have access token of merchants

  • @nykroshatake5755
    @nykroshatake5755 3 роки тому

    hello i have a problem at 25:30 when she restart the serve when i do it it didn't work I have this error that appears : Tunnel my tunnel not found, can anyone please help me ?

  • @himbary
    @himbary 3 роки тому

    I keep getting internal errors with the shopify CLI, I am trying to create a custom project

  • @shibaprasaddash7324
    @shibaprasaddash7324 3 роки тому

    Very nicely explained everything things, It will better if you will remove subtitle so that code writing also visible.

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

    This is great but how do I upload my codes to a production server?
    I have tried running the test app on Windows. Apologies if I sound stupid.

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

    I am using CLI 3, but I can't find the .env file

  • @nicholasmaniccia1005
    @nicholasmaniccia1005 3 роки тому +1

    Hey the ngrok tunnel times out and doesn't update the url properly after a while. I have looked at this problem a lot and their are workarounds that don't always work and no solution. Can you guys please look at this, none of the issues opened or closed on your github solve this problem and I literally can't finish my app. I'm not experienced at all with ngrok and tunnel so I have no clue how to even solve this stuff.

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

    Hi, how and where do you deploy this?

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

    Can we have an updated tutorial as none of this works now, half the files are missing etc

  • @marcodemata5175
    @marcodemata5175 3 роки тому

    hi,
    how long till the next video?

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

    I got all of this part finally done but now all I see is a “no webhooks” error message when I go to the app. Any good beginner tutorials on how to fix that?

  • @MEYER251189
    @MEYER251189 3 роки тому +1

    Hello, i am trying to run shopify populate products and i have this error
    Command not allowed with current login. Please check your login details with shopify whoami. You may need to request additional permissions for this action.
    Somebody know how to fix this ?

  • @singhdarab
    @singhdarab 3 роки тому +1

    Can you please make video on authenticating customer using API?
    Thanks

  • @ms-arif
    @ms-arif 3 роки тому

    How can i do this for standalone app?

  • @user-re6im7dm1x
    @user-re6im7dm1x Рік тому

    Can we use Vue3 instead of React here?

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

    Seems a lot has changed now and commands are working as expected like `shopify serve` is recognized.
    Can someone tell me any latest tutorails beginner-friendly?

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

    Hi, very nice tutorial Node.js, but I developer on Python, I have the question, It's the same procedure? thx.

  • @ABHISHEKSONI-sr7ni
    @ABHISHEKSONI-sr7ni 3 роки тому +1

    not able to run shopify populate products command . please help

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

    can i import modules?

  • @lts8683
    @lts8683 3 роки тому

    ngrok is very slow, is there any alternative? thank you

  • @seangahan1298
    @seangahan1298 3 роки тому

    Just curious if you have any extensions installed in VSCode for the shopify intellisense

    • @AdamTillontheWeb
      @AdamTillontheWeb 3 роки тому

      Sean Gahan pretty sure there are some decent ones for liquid in particular

    • @seangahan1298
      @seangahan1298 3 роки тому

      @@shopifydevs Thanks!

  • @josephandres4324
    @josephandres4324 3 роки тому

    Not reloading, it could be because i'm in a Vagrant box?

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

    It's so hard to tell where React ends and Shopify client libraries begin. Please focus on a version that uses plain NodeJS as well 🙌

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

    how to send graphql query here??

  • @pramodshehan2551
    @pramodshehan2551 3 роки тому

    I created simple app as you mentioned. But web hooks not working. I added submit button. When clicking on it, I am getting error called "method not allowed"

    • @jwk05003
      @jwk05003 3 роки тому

      Probably a CORS error

  • @Gwibinjansagori
    @Gwibinjansagori 3 роки тому +6

    This is a great video and a great start for developers, though it's really frustrating how you stop before making a graphQL request. After looking long and hard, there are no resources that show you how to make a GraphQL request within the context of the node CLI boilerplate code. It seems impossible to connect the dots of Shopify without having an in-depth understanding of exactly what is happening behind the scenes with ApolloClient, ApolloBoost and wrapping the app in a provider.
    I know there is a Node/React tutorial on the Shopify website but that was created before the CLI tool and the way of making graphQL requests is different.
    Any plans to make a video that continues with this a little bit?
    Also it would be really great if the boilerplate came with a few comments...

    • @ashutoshpawar
      @ashutoshpawar 3 роки тому +5

      This is so true, I am facing the exact same issue as well. No way to figure out how to make GraphQL request here.

    • @boffinschist1098
      @boffinschist1098 3 роки тому

      Not even a reply to this but replied to comments like "great video"

  • @damianescobedo4143
    @damianescobedo4143 3 роки тому

    If you having trouble while creating the app and you get the error Invalid 'subject_token' and you are using firefox use chrome to log in instead

  • @jacobteasley206
    @jacobteasley206 3 роки тому

    You need to get Heroku as well to host the app.

  • @kamalsaxena1384
    @kamalsaxena1384 3 роки тому

    How to integrate any stripe payment gateway SHOPIFY with react js website.

    • @kamalsaxena1384
      @kamalsaxena1384 3 роки тому

      How to process payment buyer to merchant. Complete tutorials integration stripe or any payment gateway

  • @shillo92
    @shillo92 3 роки тому

    I receive the following error after installing the app and running it through the Apps of the Store Admin in my dev store: Unhandled Runtime Error ChunkLoadError: Loading chunk 0 failed. (error: 9af60a2e86b3.ngrok.io/_next/static/chunks/0.js). Approx. at 10:12 of the tutorial.

    • @ms-arif
      @ms-arif 3 роки тому

      Your ngrok may be timeout, generate new http and put that in your app url

  • @davimarra4705
    @davimarra4705 3 роки тому

    In Minute 7:56 we hava two options, custom or public apps. But if i want to build a private app, how do i do?

    • @pramodyadealwis8059
      @pramodyadealwis8059 3 роки тому

      Make it custom. Or you can do a unlisted public app.

    • @davimarra4705
      @davimarra4705 3 роки тому

      @@shopifydevs Thank you for answering, i got it

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

    instead of react, how about vue?

  • @MrMarcoAlvarado
    @MrMarcoAlvarado 3 роки тому

    Interesting tutorial! If you want to become a shopify developer, is it necessary to be good at rails, or is it sufficient to be good at node and react?

    • @MrMarcoAlvarado
      @MrMarcoAlvarado 3 роки тому

      @@shopifydevs Ok, but I don't want to develop an app for myself, I want to work as a developer for whatever company. Is rails used at companies frequently, often, sometimes, sporadically!

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

    The setup and start of shopify-cli is not up to date. I'd appreciate if there is newer guide

  • @mostafadamirchi5833
    @mostafadamirchi5833 3 роки тому

    Hi, my name is Erfan, How I can be sponsor of your videos?