Build a Shopping Cart With React JS & Stripe

  Рет қаралды 116,353

Traversy Media

Traversy Media

Күн бұрын

Пікірлер: 188
@sanjaybatak3549
@sanjaybatak3549 2 жыл бұрын
Just when you wanted something like this, Brad drops this video. 🎉 Thank you Brad and the team. You guys are doing phenomenal work.
@paulthomas1052
@paulthomas1052 2 жыл бұрын
A fantastic tutorial. Easy to follow....no errors....a great introduction to Stripe too. Thanks
@thangtruong1808
@thangtruong1808 Жыл бұрын
Thank you for your time to support us. Loved.
@laxmiprasanna4092
@laxmiprasanna4092 Жыл бұрын
This is exactly what we need. These small videos help us during actual work.
@JonBrookes
@JonBrookes 2 жыл бұрын
Watching this from start to finish I honestly did not know how Cooper Codes would fit all the material required to code a react app and Stripe backend with express in such a short session but he did ! Very well structured approach and excellent teaching by Cooper. If you dont know arrays in Javascript and methods for workng with them you will at the end of this. If you've never used context with React you will be fine to do so at the end of this video. If you thought integrating payments into a front end app or any other for that matter is in some way beyond reason difficult you will see how easy it can be by the end of this tutorial. Thank you Cooper and also to the venerable Brad for showcasing a new channel and content of great quality
@renangaldino6538
@renangaldino6538 Жыл бұрын
This is absolutaly one of the best React tutorial avaiable in YT, Thanks a lot !!!
@gnarpow
@gnarpow 4 ай бұрын
@30:31 hands down the best description and analogue. If you just watch this part alone you will understand how powerful react context api is. You truly don’t need state managers. BUT. You do. Excellent work amigo! ❤️
@mikeynavarro3195
@mikeynavarro3195 2 жыл бұрын
This is probably my favorite youtube tutorial, Cooper revisited harder concepts for clarification multiple times. he's cool for that, definitely earned a Sub
@RobButzofNorthAmerica
@RobButzofNorthAmerica 2 жыл бұрын
Stuff like this is why I support your Patreon! Thanks so much
@tonykharioki6913
@tonykharioki6913 2 жыл бұрын
I hadn't used stripe in two years, and thanks for this. I needed this refresher
@aliplaysgtr
@aliplaysgtr Жыл бұрын
Exactly what I needed for a graduation work. Thanks a lot! Super clear and comprehensive
@josephngugi
@josephngugi 2 жыл бұрын
Been looking forward to learn stripe and here it is. thanks to traversy media
@charugupta7103
@charugupta7103 2 жыл бұрын
Heyyy traversy! Big fan here, saw your react tutorial few months ago. Came back to revise the same and found this. Thanks for the amazing contetnt.
@user-vk8kt3tp1g
@user-vk8kt3tp1g 2 жыл бұрын
Questions can come in⬆️
@maskman4821
@maskman4821 2 жыл бұрын
This is the best React + Stripe tutorial, thank you so much 🙏
@MatthewPostrel
@MatthewPostrel Жыл бұрын
This video helped me finish my first full stack project. Thank you.
@delgorithm
@delgorithm 8 ай бұрын
You're genuinely the boss. No cap. Thanks a lot 🤝
@mukangwakalonda7726
@mukangwakalonda7726 2 жыл бұрын
I thanks all traversy group, it is my first time I manage the payment project God bless you all
@HeatherKonz
@HeatherKonz 11 ай бұрын
This was an amazing tutorial! I am working on a Capstone project that is very similar to this so this was really, really helpful!! Thank you!
@brandonespinosa3756
@brandonespinosa3756 Жыл бұрын
Bravissimo, context hook is amazing. Thank you so much for showing this. Great video!
@blue_berry_pie64
@blue_berry_pie64 2 жыл бұрын
Very nice video explaination for each step! Thank Brad and Cooper Codes so much!
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance
@shannonbrookshire234
@shannonbrookshire234 Жыл бұрын
great tutorial. thank you so much for your efforts. I was stuck on a project for a couple of days and using the 'useContext' and 'CartContext' approach really helped. thanks
@blipblop92
@blipblop92 Жыл бұрын
Thank you Cooper. Amazing tutorial, so glad I found your channel. Wish the tutorial also showed how to deploy the code to something like heroku or netlify.
@pablodominguez6129
@pablodominguez6129 2 жыл бұрын
awesome, simple and cut to the chase. Thanks man!
@DavisNorde
@DavisNorde 2 жыл бұрын
Thank you, Cooper! And nice t-shirt, Brad :)
@hbela1000
@hbela1000 Жыл бұрын
Your tutorial is very straightforward, thx Brad, thx Cooper.
@shannonbrookshire234
@shannonbrookshire234 Жыл бұрын
I can't give this video enough thumbs up. Thank You
@aniket1008
@aniket1008 Жыл бұрын
Best tutorial on shopping cart on react
@Brazo07
@Brazo07 Жыл бұрын
Loved every single minute. Thank you so much
@perrythepalteypus2185
@perrythepalteypus2185 2 жыл бұрын
Brilliant tutorial man ❤️ total blast 👌🏻
@tonghandsome1
@tonghandsome1 2 жыл бұрын
Thank you very much Cooper for all the efforts you have done! Also Thank you Brad!
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance .
@plaguegames3556
@plaguegames3556 11 ай бұрын
Great job Cooper, thanks.
@250kennedy8
@250kennedy8 2 жыл бұрын
@CooperCodes thank you for this amazing project.
@andrewaghoghovwia1948
@andrewaghoghovwia1948 2 жыл бұрын
Thanks so much guys
@Russ_Paul
@Russ_Paul 2 жыл бұрын
Excellent tutorial Cooper, you're a very good teacher. Your tutorial is very straightforward, it's to the point and makes perfect sense start to finish. One thought that is going through my mind, I don't know if this goes against the grain of React, but could it be restructured into an MVC pattern?
@TechIndustryAnalysis
@TechIndustryAnalysis 2 жыл бұрын
Thanks for doing this bro!
@logancabrera7824
@logancabrera7824 2 жыл бұрын
Hey guys, I'm having troubles hosting this code. Do I have to change any code to make it work on the web (hosted)?
@danielowusu6163
@danielowusu6163 Жыл бұрын
Lifesaver 🎉 subscribed
@bnji6601
@bnji6601 2 жыл бұрын
Amazing tutorial, I had one question on the success and cancel url in the server. I realize this works for localhost. For live deployment how would you go about setting up the routes for that.
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance .
@kamichikora6035
@kamichikora6035 2 жыл бұрын
Yes!!!!! Cooper codes!!!! This guy has good stuff
@CooperCodes
@CooperCodes 2 жыл бұрын
Hah I appreciate it! Thanks for watching :)
@arminesmaili908
@arminesmaili908 2 жыл бұрын
real good Armin liked that👍
@nicolassuarez2933
@nicolassuarez2933 Жыл бұрын
Best of its kind!
@kellyncodes7421
@kellyncodes7421 2 жыл бұрын
Thanks for the vdeo Brad/Copper Code
@sadique_x_
@sadique_x_ 10 ай бұрын
ohh Brad!🤟
@VitorGomes_
@VitorGomes_ Жыл бұрын
Awesome work! Thank you.
@christian-schubert
@christian-schubert 2 жыл бұрын
Thanks for this! Love how Cooper structures this video, I really think Brad should make sure any video to be featured on this channel should meet certain criteria, i.e. demonstrating the final product before getting down to the nitty-gritty, etc.
@thenomad.engineer
@thenomad.engineer Жыл бұрын
DUDE... MEGA HELPFUL
@WebAppMeta
@WebAppMeta Жыл бұрын
Another tutorial hell. keep going!
@Feciboy
@Feciboy 11 ай бұрын
Great tutorial! Thank you!
@cosanostraytc1030
@cosanostraytc1030 2 жыл бұрын
Great tutorial man. Thank you!!!
@estifanosgashawtena8789
@estifanosgashawtena8789 2 жыл бұрын
Great video, at 45:40 to find the total cost of products from cart, it better to use Array.Reduce() but overall good content 👌
@CooperCodes
@CooperCodes 2 жыл бұрын
Yeah there were definitely some tradeoffs at areas to make the code easier to understand, I feel map can be easier to show that at each item we are getting that total price but it is a bit unnecessary. Thanks for the comment and perspective I appreciate it.
@tarcisiosassi9379
@tarcisiosassi9379 Жыл бұрын
Really cool. Thanks for share!!
@M.H.12-m2s
@M.H.12-m2s 6 ай бұрын
cooper is the best
@CodeCouture
@CodeCouture Жыл бұрын
hi, I have a question whn building a full stack ecommerce website how to do you get the person's details Thank you
@densel.c8935
@densel.c8935 8 ай бұрын
Great video!
@WebAppMeta
@WebAppMeta Жыл бұрын
Thanks Cooper
@futureverse9347
@futureverse9347 2 жыл бұрын
Very good project Thank you @Cooper Codes 10/10
@omarimoody9794
@omarimoody9794 2 жыл бұрын
Excellent work, Appreciate cha!
@madfut24_official
@madfut24_official 6 ай бұрын
until now I've my website completely built with html. Do i need an other program and witch program do you use in your vid? Maybe you've said this in your vid but for me only the last 15 min are important
@VictorJReilly118
@VictorJReilly118 2 жыл бұрын
Thanks so much!! Really good tutorial!
@robeeeeen
@robeeeeen 6 ай бұрын
Any necessity of "Remove from Cart" red button? Is that button added since the minus button does not makes the In Cart: 0 ? The function removeOneFromCart do not make it 0.
@movrew
@movrew 2 жыл бұрын
This is super cool
@dannydanny477
@dannydanny477 Жыл бұрын
57:15 i have still a NaN in total what is changed ?
@963seeker
@963seeker 2 жыл бұрын
does anyone know how to set a fixed quantity for items to control the amount of supply of any given item? A user might pay for an item that the supplier (You) don't have in stock :( Any help is greatly appreciated
@paymankhayree8552
@paymankhayree8552 Жыл бұрын
thanks. really helped me
@emmanuelenwereji472
@emmanuelenwereji472 11 ай бұрын
Thank you for this awesome video, I would really appreciate if I can get more clarifications on using local storage for this project, I am having issues, whenever I reload the page, I usually loose all my items in the cart. Thank you
@marshallgraphic
@marshallgraphic 6 ай бұрын
This is interesting with Strip letting you manage your products from their platform. Do they provide an API to fetch the products from there so you don't have to store items in a DB in your app?
@oyeyinkaojora
@oyeyinkaojora Жыл бұрын
Thank you so much for this,
@dgloria
@dgloria 2 жыл бұрын
Cool T-shirt!
@sonamohialdin3376
@sonamohialdin3376 Жыл бұрын
This is awesome tutorial thank you
@oxanasf6369
@oxanasf6369 2 жыл бұрын
Amazing, thank you!
@emvoinamdinh
@emvoinamdinh 2 жыл бұрын
thank you sir very much !!!😍😍
@programmingwithnit5308
@programmingwithnit5308 2 жыл бұрын
Thank you so much🙏🙏
@thomasstambaugh5181
@thomasstambaugh5181 2 жыл бұрын
Does the Modal (that contains the cart) hide when the user clicks outside the BROWSER? For example, if the user has this app open in a chrome browser on a desktop and clicks on "Snipping tool" to take a screenshot, will the Modal hide? I spent a few days (close to a week) trying to provide that behavior to an Material UI (v5) pane with no success. It appears that the "onHide" handler in the (Bootstrap Modal component) is somehow connected to the "focusout" and "blur" events that are flying around under the cover. I'm curious about whether this is a "hard" problem that the Modal component solves or (more likely) whether I'm just confused about how to provide the desired behavior. I do have one substantive criticism of the approach presented here -- I would have used literal object ("{}") rather than array ("[]") for the container of items. Since each item in the array must have a unique ID, then the "id" property used in each item can be its key in an object container. That makes the manipulators for the items cleaner, more robust, and more performant. I appreciate this well edited piece. I might pick some nits with specifics, but those are just nits -- this is an excellent piece.
@ankitbhatt9388
@ankitbhatt9388 Жыл бұрын
I am deploying a project like this, so in cart.jsx and server.js page in checkout function what URL should i give.
@jancahlik9959
@jancahlik9959 Жыл бұрын
How does one host this project in production? Can someone explain please? Would this be under 1 domain and hosting? I am confused, because two different ports are being used.
@bradwoods371
@bradwoods371 Жыл бұрын
what would be the best way to implement this into a site already built with html css javascript etc.
@yuehanchen578
@yuehanchen578 Жыл бұрын
I Created my account and updated the stripe Secret key and product API but it was not working when you click the "Purchase" button
@ahsanaqueel1182
@ahsanaqueel1182 2 жыл бұрын
Hey @CooperCodes what if we have a lot of products how can we use stripe without creating products on stripe as it will be very difficult to upload same products on 2 different platforms (website and stripe).
@codewithahad5990
@codewithahad5990 2 жыл бұрын
It;s was really great toturial best of luck
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance .
@iUniverse
@iUniverse 2 жыл бұрын
Hi Brad, if you don't mind can you make a React, Redux-Saga, React Tool Kit real world projects tutorial in your Udemy platform. Learning with you is a great help.
@iUniverse
@iUniverse 2 жыл бұрын
Is this Brad's Whatsapp number?
@rajatmalviya1097
@rajatmalviya1097 2 жыл бұрын
I am also looking for a Redux-tool kit Course.
@haroldve98
@haroldve98 2 жыл бұрын
this tutorial it's absolutely god thanks
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance .
@lehuynh7637
@lehuynh7637 2 жыл бұрын
20:29 you can use ffc snippet Simple React Snippets extension to fast to code
@danimusbar
@danimusbar 2 жыл бұрын
Unfortunately the stripes service is not available yet for indonesia
@mostafahemdan8609
@mostafahemdan8609 8 ай бұрын
This Bootstrap is unfamiliar to me , Is this better or the usual one written in the class name?
@ambrosebeavers
@ambrosebeavers Жыл бұрын
Hi There, thank you for this vid. How do one receive payment in a production environment using Stripe. Would it be the same procedure. How would the money get to ones bank account
@ThePatrickHuynh
@ThePatrickHuynh 2 жыл бұрын
Great tutorial
@Seedley
@Seedley Жыл бұрын
This is a great video. If I want to make a post once I get a success url back from stripe is there a way to do that? I'm making a car listing site and would like to charge per car post.
@godswillumukoro8908
@godswillumukoro8908 Жыл бұрын
Awesome tutorial I'm not sure why, it doesn't work for me unless I change the modefrom 'payment' to 'subscription'
@murdermurcoo
@murdermurcoo 2 жыл бұрын
Great tutorial i succeeded to do this on localhost. I want to publish it to my hosting. Im new to react and run a build in the shop folder. How can i build the server along with my project and upload into the ftp.
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance
@igwanwan_dagoat1523
@igwanwan_dagoat1523 Жыл бұрын
Can I use this for business use?
@jawidz4636
@jawidz4636 Жыл бұрын
Amazing tutorial bro ! One question ! im trying to use that show cart button in some other component. tried many stuff but none worked! any suggestion for that matter ? i Appreciate any help
@TheBelafleck
@TheBelafleck 2 жыл бұрын
Hey. This is awesome and very helpful. One question: How is the cart emptied after the purchase is completed?
@VaibhavPawar-k7e
@VaibhavPawar-k7e Жыл бұрын
Hey Brad, Thanks for this video. I just having one question, Because I am not able to access array for added product in other components of my project. How can I fix this ?
@plaguegames3556
@plaguegames3556 11 ай бұрын
C'mon that is a very specific request with almost none information given. Maybe if you can share the code people can help here.
@puahwankoon9227
@puahwankoon9227 Жыл бұрын
Hello, i follow along the whole tutorial and all is fine till listening on port 4000, it keep throwing error "Cannot GET /", even i clone this github project and still the same error, anyone please help!!>
@varadarajanm6954
@varadarajanm6954 2 жыл бұрын
Awesome
@ArnavSingh-im5bj
@ArnavSingh-im5bj Жыл бұрын
You should have also covered webhook
@aguywithoutaname
@aguywithoutaname 2 жыл бұрын
Thanks man
@romimaximus
@romimaximus 2 жыл бұрын
I have a question, ..what about the customer's address, to ship the products ? ..cause i didnt see that, when customer makes the payment ?
@CooperCodes
@CooperCodes 2 жыл бұрын
Hey, thanks so much for watching! I Know documentation can be daunting, but check this page out: stripe.com/docs/payments/checkout/shipping . In the video we already created the stripe.checkout.sessions.create() , so you need to add some stuff to the create method that will make stripe ask the customer for their shipping information.
@romimaximus
@romimaximus 2 жыл бұрын
@@CooperCodes Thankx for your reply, .. by the way, i really like the way you explain things in details... i learned a lot from this video tutorial ...!! thank you very much.. 😎👍
@abdulmoeez13
@abdulmoeez13 2 жыл бұрын
Hello there. I have a question. Why is it necessary to create products on stripe when I can directly pass my shopping cart details to stripe. What's the need for creating products on stripe?
@CooperCodes
@CooperCodes 2 жыл бұрын
This is a good question. Creating the product in Stripe can be nice because that price API ID we use in the video provides a consistent reference to that specific product. Although it wasn't featured in this video, you can show live up to date prices from the Stripe ID so lets say you wanted to put a sale on sunglasses you wouldn't need to go and change the code of your website. You would just change the price in Stripe for example. Hopefully this explains some things!
@newabyuser
@newabyuser 2 жыл бұрын
after passing CartProvider in the app.js everything went blank
@Julesarixx__my__teleqram__ID
@Julesarixx__my__teleqram__ID 2 жыл бұрын
👆send a direct message for support and guidance
Build A RealTime Chat App With React & Appwrite Cloud
2:21:14
Traversy Media
Рет қаралды 75 М.
5 Pro-Level React Do's & Don'ts
30:06
Traversy Media
Рет қаралды 177 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
How To Accept Payments With Stripe
23:05
Web Dev Simplified
Рет қаралды 289 М.
Build a Serverless Subscription Site with Stripe
30:50
Ali Spittel
Рет қаралды 10 М.
The EASY way to set recurring payments (Stripe subscriptions)
16:57
Intro To The Node.js PayPal REST SDK
25:37
Traversy Media
Рет қаралды 108 М.
React Shopping Cart for Beginners - Tailwind Css
27:32
WinDev
Рет қаралды 4,2 М.
Shopping Cart In React Js For Newbies
31:52
Lun Dev
Рет қаралды 48 М.
Stripe Checkout with React Crash Course
29:21
DesignCode
Рет қаралды 43 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 74 М.
Sanity Crash Course: Learn The Basics in 20 Minutes!
24:55
Sanity
Рет қаралды 108 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН