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 - Наука та технологія
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.
Thanks for the helpful advice.
You are absolutely right 🤣
thanks for sharing!!
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..
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.
What a fantastic explanation. Thank you, Jennifer!
Really great video. The CLI is very intuitive, so useful to have a component lib too. Looking forward to building Shopify Apps.
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
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.
Thank's for sharing this right when I needed it!
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?
Thank you for this tutorial. What's really interesting for me is the same workaround, but in TypeScript.
I really enjoyed this tutorial. Thank you so much for creating this for the user community.
Such a superb tutor! Thanks for this useful and understandable tutorial
This was extremely helpful! Thank you!
Thanks Jennifer, great video. I had the time of my life and I never felt like this before.
Perfect, thank you for your clear understanding of how and where to start in my Shopify App journey.
Amazing info! Love this.
Awesome intro, thank you!
I like Shopify App Bridge and Polaris when working with React pages. It's a year late, but thank you for this video.
Thank you for this tutorial. A TypeScript Starter Kit would be awesome!
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 👌 👌
awesome tutorial. loved it
Shopify never fail to disappoint me
Fantastic info!!! Very cool for developers….
Very informative! Would CLI comes with ts and react hook optionals in the future?
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.
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
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 ?
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
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?
very informative session, i have a query regarding the resource picker, How can we list the preselected products in the resource picker..?
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?
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
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
Great video. Will you have any videos dealing with billing and app subscriptions?
This is insane!
Can we pleaseeee get a video for working with extensions, Argo, and/or the new Shopify Subscriptions API!!!
@ShopifyDevs Is there any full tutorial of the Shopify-Node-React app?
Would it be possible to install CLI with choco package manager in future ?
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.
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.
Hey, have you manage to find any tutorials on implementing app bridge to make app load faster? I'm struggling to find one.
Thanks for sharing you video with us! could you please share more video like that but with Hooks, and maybe Redux? Many Thanks
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?
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.
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.
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?
Hey Jennifer, thanks for the tutorial! Why exactly do we need to use Koa when we can use the Next.js API routes?
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.
Can this work on only on Visual Studio Code, or can it also work on Intellij.
Can we do the same thing with Angular or is it mandatory to use React ?
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.
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!
@ShopifyDevs can you cover how to deploy the Next.js Polaris app to say AWS? Not finding a lot of resources
Hi, I'm missing the folder pages in my project, would you know why please? Thank you
Thanks a lot for the good tutorial.
Could you please post tutorial about how to "shopify node deploy"?
will shopify come up with flutter sdk ?
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 ?
You can export and import this.
Very awesome video tutorial about Shopify app dev. Shopify-CLI tool is not so friendly with windows users. 😆
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
Would anyone know how to get data from one store and transfer it to another?
Do you have any news when Polaris will be open for Angular?
kept getting this error {The PerformanceObserver does not support buffered flag with the entryTypes argument.
} pls help!!!
Can I use Class components instead of React Hooks or functions?
How do you make a request to GraphQL?
2:30 rip
great tutorial really thorough
Ngrok not found while starting development server again what to do?
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...
which vs code theme is that one?
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
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 ?
I keep getting internal errors with the shopify CLI, I am trying to create a custom project
Very nicely explained everything things, It will better if you will remove subtitle so that code writing also visible.
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.
I also want to know this, if you got the answer plz.
I am using CLI 3, but I can't find the .env file
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.
Hi, how and where do you deploy this?
Can we have an updated tutorial as none of this works now, half the files are missing etc
hi,
how long till the next video?
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?
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 ?
Can you please make video on authenticating customer using API?
Thanks
How can i do this for standalone app?
Can we use Vue3 instead of React here?
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?
Hi, very nice tutorial Node.js, but I developer on Python, I have the question, It's the same procedure? thx.
not able to run shopify populate products command . please help
can i import modules?
ngrok is very slow, is there any alternative? thank you
Just curious if you have any extensions installed in VSCode for the shopify intellisense
Sean Gahan pretty sure there are some decent ones for liquid in particular
@@shopifydevs Thanks!
Not reloading, it could be because i'm in a Vagrant box?
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 🙌
how to send graphql query here??
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"
Probably a CORS error
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...
This is so true, I am facing the exact same issue as well. No way to figure out how to make GraphQL request here.
Not even a reply to this but replied to comments like "great video"
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
You need to get Heroku as well to host the app.
How to integrate any stripe payment gateway SHOPIFY with react js website.
How to process payment buyer to merchant. Complete tutorials integration stripe or any payment gateway
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.
Your ngrok may be timeout, generate new http and put that in your app url
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?
Make it custom. Or you can do a unlisted public app.
@@shopifydevs Thank you for answering, i got it
instead of react, how about vue?
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?
@@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!
The setup and start of shopify-cli is not up to date. I'd appreciate if there is newer guide
Hi, my name is Erfan, How I can be sponsor of your videos?