Full Stack eCommerce Cart build (React, Redux, Node, Express, MongoDB)...From Scratch💥

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • Today we will be building a full stack e-commerce cart from scratch using React and Redux for our frontend and Node, Express and MongoDB for our backend. We will be doing everything on our own from setting up the backend API to styling our components.
    I really hope you enjoy this video and if you did please don't forget to LIKE and SUBSCRIBE 🤓!!
    Let me know in the comments below what you thing of this type of videos and i i should make more like them. And if you have any suggestions on what video you would like me to do next let me know down below.
    Timestamp:
    ==========
    0:00:00 Intro
    0:02:29 Folder Structure and Setup
    0:14:15 Backend Build
    0:18:30 Setting Up MongoDB Atlas
    0:22:08 Setting up product model
    0:25:46 Data import script
    0:30:52 Building out Routes and Controllers
    0:38:56 Frontend File Cleanup
    0:40:13 Frontend Build & Styling
    2:30:56 Setting Up Redux Store
    3:42:15 Final Build Testings
    3:45:24 Outro
    My personal website
    =================
    www.thefullstackjunkie.com

ความคิดเห็น • 515

  • @the_full_stack_junkie
    @the_full_stack_junkie  3 ปีที่แล้ว +79

    Hope y'all enjoy this video let me know what you think if the tuts are to lengthy or do you enjoy these longer project builds?
    GitHub Link:
    github.com/LloydJanseVanRensburg/mini-mern-ecommerce-project
    Don't forget to Like and Subscribe🤓

  • @awaraamin6850
    @awaraamin6850 2 ปีที่แล้ว +1

    Thank you for sharing all of these for free! You guys are angels on the Earth!

  • @JoelGrayson
    @JoelGrayson 2 ปีที่แล้ว +1

    Thank you so much for covering the different aspects of a web app. You are very generous!

  • @nijojoseph
    @nijojoseph 3 ปีที่แล้ว +2

    Best MERN tutorial video, I have seen. Congrats and keep up the good work.

  • @SimPwear84
    @SimPwear84 2 ปีที่แล้ว +3

    You're an amazing instructor that makes complex topics look easy. I really appreciate you taking your time and sharing your knowledge with us. Love from South Africa, Cape Town.
    PS: Can you please in the future create a MERN tutorial with different schemas and how database relationships work? That would be dope. Thanks

  • @historianooficialunofficia2085
    @historianooficialunofficia2085 3 ปีที่แล้ว +4

    increible project man, ive wanting for so long to unite node and react, thank you, very very much!

  • @pranavthirumalai126
    @pranavthirumalai126 3 ปีที่แล้ว

    LOLL @@ "So if you've seen my mongoDB crash course, you will know these things" (27:20)! Excellent tutorial and not too long

  • @oscar51007
    @oscar51007 3 ปีที่แล้ว +20

    Hey thank you so much for this video, I’ve learned so much from it and finally understood some concept that I was lost for for months! I’m excited to go through the rest of your videos. Don’t stop what you’re doing
    Again thank you

  • @berrieberrie1555
    @berrieberrie1555 3 ปีที่แล้ว +1

    Thank you so much for the video
    from Malaysia 🇲🇾

  • @awara6984
    @awara6984 2 ปีที่แล้ว +1

    wow wow! Thank you so much for all the effort you have put into making this super useful video!

  • @2kceltics
    @2kceltics ปีที่แล้ว +1

    I love you from Argentina! Best fullstack teacher ever! 😍

  • @johnandersontorresmosquera6830
    @johnandersontorresmosquera6830 2 ปีที่แล้ว +1

    Excellent tutorial, great detailed explanation. I did everything and it worked perfectly. The best way of learning react is doing a project and this is one suitable one. Thanks for sharing your knowledge !

  • @mahendranath2504
    @mahendranath2504 3 ปีที่แล้ว +1

    Thank you so much 👍🏼🙏 for all you have done to bring this to us, appreciate your efforts

  • @unmoybiswas5190
    @unmoybiswas5190 2 ปีที่แล้ว +1

    thanks for such an amazing video tutorial from scratch, it helped me to learn a lot. Thank you so much once again.

  • @albertoguerra1154
    @albertoguerra1154 2 ปีที่แล้ว +1

    I love this video! You need hands on experience in react to understand this tutorial. This was amazing!

  • @partygrouppl
    @partygrouppl 3 ปีที่แล้ว +1

    Thanks a lot for this content. I've learned so much, and build similar project thanks to this video!

  • @lindatochukwu3081
    @lindatochukwu3081 2 ปีที่แล้ว +1

    You are the best!!!! all these goodies in one video? thanks alot for this, it really helped me , God bless u sir...all the way from Nigeria!!!

  • @Naimadmdp
    @Naimadmdp 3 ปีที่แล้ว +1

    New sub!!! Thanks for share your knowledge.

  • @funnyvideosforlife
    @funnyvideosforlife 2 ปีที่แล้ว +5

    You are a true teacher explaining everything. Thank You for your time and effort. I know what it takes to make videos like this. Awesome contributions to the community.

  • @ChrisReyCap
    @ChrisReyCap 3 ปีที่แล้ว +6

    Thanks for the tutorial. I've been trying to make a career switch to more web technologies. I've been stuck in the 'tutorial hell' but you've given me an insight on how much I need to know to get started. I think after this video, I can start making my projects :) Your English is great and very easy to understand!

    • @the_full_stack_junkie
      @the_full_stack_junkie  3 ปีที่แล้ว +2

      I so glad to hear my friend. Just keep working and it will all start falling in place💪. Thanks for the comment

  • @yasithsfonseka7658
    @yasithsfonseka7658 3 ปีที่แล้ว +1

    Thank you sir..!!!! I learnt so much things from this tutorial...

  • @huynguyengia2960
    @huynguyengia2960 2 ปีที่แล้ว +1

    Very detail. That's all I need.Ty

  • @KrzysztofJozwik
    @KrzysztofJozwik 2 ปีที่แล้ว +1

    That's a lot of hours of my life I'll never get back. Earned my like and my subscribe, keep up the good work.

  • @yogeshyewale478
    @yogeshyewale478 2 ปีที่แล้ว +1

    Loved watching this Project taught me so much new things

  • @faridul.hassan
    @faridul.hassan 3 ปีที่แล้ว

    It helps me very much to understand MERN. Thank you very much.

  • @cybergates597
    @cybergates597 2 ปีที่แล้ว +1

    Nice one Here. Thanks alot

  • @nhantrong7395
    @nhantrong7395 3 ปีที่แล้ว +1

    Thank bro..!!!! I learn so much things from this tutorial...

  • @asianroster4608
    @asianroster4608 2 ปีที่แล้ว

    I found only person on youtube that makes connection with mongoDB with end level simplicity

  • @anonysmooth648
    @anonysmooth648 3 ปีที่แล้ว +3

    very nice! the structure of your coding is so clean and readable
    step by step and detailed keep up the good work!

  • @felipejal711
    @felipejal711 3 ปีที่แล้ว +1

    Thank you very much! This have been so helpfully to improve my skills
    Greetings from Colombia

  • @marvinsejaphala1240
    @marvinsejaphala1240 2 ปีที่แล้ว +1

    This is a great video, keep up the good work.

  • @yaseswinamala5422
    @yaseswinamala5422 6 หลายเดือนก่อน

    Thanks for the tutorial

  • @Kermin00
    @Kermin00 3 ปีที่แล้ว +1

    Great tutorial, thank you!

  • @kiambojyms2196
    @kiambojyms2196 2 ปีที่แล้ว +1

    Great video... it will help me out in my current project

  • @tobjianouar7070
    @tobjianouar7070 2 ปีที่แล้ว +1

    Thank you sir ,great content.

  • @json9353
    @json9353 3 ปีที่แล้ว

    Thank you such a good turtorial and I like the lengthy videos. If people dont like it you can allways just make a playlist with shorter once.

  • @yx1566
    @yx1566 3 ปีที่แล้ว +1

    Really appreciate your work sir! I had basic react/redux background but still found this tutorial is hard to fully understand. I spent two weeks to complete this project, it's been a hardwork but I make it, thank you again! For me the hook functions part is the most difficult because the last time I used react is been one year ago and back to that time I used class components, my suggestion here is you can explain the logic behind redux state management while coding, that would be better to those who are new to react/redux. I hope you enjoy your day and keep the good work!

    • @the_full_stack_junkie
      @the_full_stack_junkie  3 ปีที่แล้ว

      Thanks champ just keep learning and working and you will great. I will be using redux toolkit in the upcoming videos hope to mae things more clear in those videos thanks for the feedback

  • @vinodpatel9983
    @vinodpatel9983 2 ปีที่แล้ว

    Fantastic Tutorial.

  • @NandoLofi
    @NandoLofi ปีที่แล้ว +1

    Thank you so much for this. After coding bootcamp I was struggling to find ways of understanding some parts of React and after this, I have MUCH more understanding. This helped me so much. Thanks again

    • @the_full_stack_junkie
      @the_full_stack_junkie  ปีที่แล้ว

      Wow great to hear 👏

    • @kannabim1437
      @kannabim1437 ปีที่แล้ว

      @@the_full_stack_junkie Hi, this is a question someone posted before but in my redux, the getProducts is just showing loading: true, products: [ ]. I have the data in my mongodb atlas but somehow the homescreen just shows "loading...". do you know what might be the problem? it looks like the request is sending but the success part never happens

  • @borislai9970
    @borislai9970 3 ปีที่แล้ว

    I just wanna say , AWESOME

  • @ramanjaneyappan7964
    @ramanjaneyappan7964 3 ปีที่แล้ว +1

    Thank you so much for sharing your knowledge

  • @shortclips5742
    @shortclips5742 3 ปีที่แล้ว +1

    One Word, Brilliant!!!

  • @yasharaleemsh3187
    @yasharaleemsh3187 2 ปีที่แล้ว +1

    Thank you for the video,

  • @axelekamba7333
    @axelekamba7333 3 ปีที่แล้ว +1

    your ways of explaining things it's awesome, like it. Can you please add on that of it the payment or checkout functionalities? Thank you in advice.

  • @rakhisingh9797
    @rakhisingh9797 2 ปีที่แล้ว

    I noticed that you uploaded very useful videos videos , great bro 👍

  • @carlatemporosa2723
    @carlatemporosa2723 3 ปีที่แล้ว +1

    Thank you so much. Helped me a lot in our project.

  • @noahkwon8326
    @noahkwon8326 3 ปีที่แล้ว +1

    really like the workflow and how you really went step by step. keep it up! liked and subscribed

  • @HanJin-lg8km
    @HanJin-lg8km ปีที่แล้ว +2

    Very good tutorial. I found that is no longer used in React now. After google, I found that is used instead, which can help avoid the error 'Switch' is not defined react/jsx-no-undef.

  • @dndLeitch
    @dndLeitch 3 ปีที่แล้ว +1

    Nice to hear a local voice! keep up the good work boet!

  • @Regardez62834
    @Regardez62834 3 ปีที่แล้ว +1

    You project help me to learn to much Thank You

  • @priya_18nusrat
    @priya_18nusrat 2 ปีที่แล้ว +1

    Zajakallah khairan❤️thanks

  • @alchelvly3391
    @alchelvly3391 3 ปีที่แล้ว +14

    This may have been a long video, but it literally covers a whole stack from start to finish. Very easy to understand, great content to learn from. I hope you put out more content like this because I myself and I am sure there are others that would benefit from your knowledge! Great video man

    • @the_full_stack_junkie
      @the_full_stack_junkie  3 ปีที่แล้ว

      Thank you so much champ. Full stack Reddit clone coming soon.

    • @arkmy
      @arkmy 2 ปีที่แล้ว

      @@the_full_stack_junkie That would be awesome!

  • @muhammadazeem8852
    @muhammadazeem8852 3 ปีที่แล้ว

    I LEARNED A LOT FROM THE VIDEO THANKS SO MUCH, KINDLY DO A VIDEO FOR CHECKOUT AND STRIPE CARD

  • @user-sl7hx4bs7q
    @user-sl7hx4bs7q 3 ปีที่แล้ว

    Thanks a lot for the video. It would be great if you next video about NEST NEXT and TypeScript

  • @mdfaiyaz5686
    @mdfaiyaz5686 3 ปีที่แล้ว +3

    Thank you
    Please make more projects on MERN with all functionality such as, login authentication and payment gateway.

  • @sandeepaishara7062
    @sandeepaishara7062 2 ปีที่แล้ว +2

    Thanks for save my life....... 😉😉😉😉😉😉

  • @atcatc4455
    @atcatc4455 2 ปีที่แล้ว

    Thanks for the great tutorial, I learned a ton of info about Redux, kindly may i ask why you didn't use try & catch in CartItem action like you did in product action? Thanks again for your time and your tutorial

  • @sibajenesikasukwe
    @sibajenesikasukwe 3 ปีที่แล้ว +1

    Thanks for the tutorial, I really appreciate.
    Kindly help me on how to do the deployment to heroku part

  • @futbalist5293
    @futbalist5293 3 ปีที่แล้ว

    Thank you so much 😊How can I include a search bar for this? And a form to put the product items from UI rather than from backend

  • @gamesandmoregames8946
    @gamesandmoregames8946 2 ปีที่แล้ว

    Very helpful

  • @AnujGupta-kw9sw
    @AnujGupta-kw9sw 3 ปีที่แล้ว

    Hey ! Here I'm requesting you to create a short tutorial on redux with functional vs reduc with class components..
    It probably confusing for some people like me.
    Please just short video 🙏
    And thank for providing such awesome content, specially that ecommerce tut❤️

  • @rodrigonovaes7812
    @rodrigonovaes7812 3 ปีที่แล้ว +1

    Great Stuff!

  • @Aiducateur
    @Aiducateur 2 ปีที่แล้ว +1

    Hello, I love your video because you take the time to go thru all steps of a full stack. Don't apologize for taking good quality time to explain stuff to us. Slow down, I will pause and take a break if I so need, but when you speed up because you think it takes to long, it breaks the rythm. Also, I can speed up if I already know the stuff. So please keep doing your magic and don't bother the duration. :)

  • @marwenmaatougui116
    @marwenmaatougui116 2 ปีที่แล้ว +1

    Thank your for this coure full stack

  • @mrwatt4356
    @mrwatt4356 3 ปีที่แล้ว +1

    Loved this. Really looking forward to seeing alot more react content from you.

  • @markeem321
    @markeem321 3 ปีที่แล้ว +1

    Hi FSJ,
    your tutorial is super helpful. CSS was painful, but I could learn a bit of new things. I've got some question for now :)
    1. Is your approach close to best practices? It feels like
    2. At 2:42:34 I get a bit headache. Why do you override the existing item? In line 8 we noticed the product already exist.
    Add: Ok now I got it. It's like updating the existing item
    3. Would it not better name "product -> product_id" ?

  • @jassegama97
    @jassegama97 2 ปีที่แล้ว +1

    Thank you!!

  • @abdelrahmanmagdy8946
    @abdelrahmanmagdy8946 3 ปีที่แล้ว +1

    thank you so much❤💕👌

  • @titi2424
    @titi2424 3 ปีที่แล้ว

    very good!

  • @michaelkinful1915
    @michaelkinful1915 3 ปีที่แล้ว +1

    Thank you very much

  • @alaminhowlader36
    @alaminhowlader36 3 ปีที่แล้ว +1

    excellent tutorial

  • @zainulabideen7628
    @zainulabideen7628 2 ปีที่แล้ว +1

    Thank you very much bro

  • @rendyartha4950
    @rendyartha4950 3 ปีที่แล้ว +3

    finally i found you my man! your perspective when you code really close with me. LOL nice to meet you. Hello from indonesia

    • @the_full_stack_junkie
      @the_full_stack_junkie  3 ปีที่แล้ว

      Glad to hear champ!!💪🤓✌

    • @kat77717
      @kat77717 3 ปีที่แล้ว

      @@the_full_stack_junkie can I get Use Case diagram

  • @TheYourfriend123
    @TheYourfriend123 2 ปีที่แล้ว +2

    Successfully finalized the project and now I can confidently say I have good command on Redux. Thank you for brilliant lengthy content.

  • @SunitaDevi-hs7pz
    @SunitaDevi-hs7pz 3 ปีที่แล้ว +1

    Nice video thanks a lot for this video

  • @leguizbsit3162
    @leguizbsit3162 ปีที่แล้ว +1

    i'm just starting now hopefully i can make it hahahaha

  • @sammbende2
    @sammbende2 2 ปีที่แล้ว +1

    Great video. You nailed it. Could you if possible proceed with checkout and authentification? Thanks for the good work. Your clarity in explaining stuff makes the video even two times shorter.

  • @g.shanmugasundaram1747
    @g.shanmugasundaram1747 2 ปีที่แล้ว

    Thank you so much for the wonderful content, material and explanations. It's a long video but worth watching and learn the MERN stack.

  • @jakubgadzala7474
    @jakubgadzala7474 3 ปีที่แล้ว +1

    Nice copy! I will watch though

  • @remi2959
    @remi2959 2 ปีที่แล้ว

    This was awesome and I really appreciate it , do you have any videos on deploying MERN applications such as this one?

  • @murali7370
    @murali7370 3 ปีที่แล้ว +1

    Thanks for the video.
    Love from India❤️

    • @the_full_stack_junkie
      @the_full_stack_junkie  3 ปีที่แล้ว

      Hope you found it helpful and if you have any other topics let me know!

    • @murali7370
      @murali7370 3 ปีที่แล้ว +1

      @@the_full_stack_junkie please make video for JavaScript data structures

  • @yhr4052
    @yhr4052 3 ปีที่แล้ว +6

    Man, your Afrikaans accent is so classy!

  • @javascriptworld98
    @javascriptworld98 3 ปีที่แล้ว

    hey, how to use qtyChangehandler function on different types of product category which is stored in separate file in database??

  • @chuanluuinh9276
    @chuanluuinh9276 2 ปีที่แล้ว

    Thanks you very much. I have a problem with save the cart in my project level basic. I don't know cart data should be save in localStorage or in User database or in Cart database. Hope u explain for me 🥰

  • @rodrigonovaes7812
    @rodrigonovaes7812 3 ปีที่แล้ว +4

    Man you've just became my favourite content creator. I know sooner or later you will start charging for your course, and to be honest, fair enough... but I'm your fan.
    Your code is clean, it matches the style I like, using css name convention, you don't repeat yourself, and above all, the way you explain everything it just sinks.
    I'm confident to say that I've learnt more from your content than anyone else.
    Also, the projects you tackle, most of the times have real life usage, in most cases I replicate your tutorial so many times that I end up learning.
    Congrats and keep up the awesome job!
    I hope your channel grows and I will be there to support you.!

    • @the_full_stack_junkie
      @the_full_stack_junkie  3 ปีที่แล้ว +1

      Geez man this comment truly means the world to me thank you for your kind words and support i really do appreciate it🙏
      I have big projects planned for the future so keep watching currently just busy with client work but once that is done i will be uploading big real world projects again. Thanks for your support and kind words this is what keeps me wanting to make more and more quality videos😇🤓

  • @pjos2981
    @pjos2981 3 ปีที่แล้ว

    Thank you so much sir.
    Please guide to. Create an E-learning website with online login n video classes with record button

  • @ashikrabbi4300
    @ashikrabbi4300 3 ปีที่แล้ว +1

    Thank you

  • @mohamedrifkan6577
    @mohamedrifkan6577 3 ปีที่แล้ว +2

    I would be great 😌 if you include how to deploy to heruku and git

  • @AnujGupta-kw9sw
    @AnujGupta-kw9sw 3 ปีที่แล้ว +2

    Best on TH-cam ❤️

  • @srikarravoori124
    @srikarravoori124 3 ปีที่แล้ว

    Hey, I find an error under cartScreen.js - cannot read the property length - undefined , I couldn't resolve it, why it occurs? Please let me know.

  • @normandrioux2529
    @normandrioux2529 3 ปีที่แล้ว

    Hi FSJ
    Super Video, And COLON it is :-)
    Question, i am having issue wrapping my head on how to create/use a big collection.
    in the examples I have looked at as well as yours are always 4-5 fields in the collection, but in the real world a product, users, customers etc may have 100's of fields per collection.
    How would you approach this in the models?
    Can we separate the models in chunks? like Name model, address model, phone model, authorization model etc...
    Is having as many fields have a real impact on performance?
    Hope you can enlight me :-)
    thx
    Norm

  • @vst87
    @vst87 3 ปีที่แล้ว +1

    Thanks a lot for great stuff. Really helped me to understand things from scratch...!!

    • @vst87
      @vst87 3 ปีที่แล้ว

      Hi, I have posted 2 issues on your github link. Can you please help me here?
      Server running on port 5000
      MongoDB connection FAIL
      Unable to connect to MongoDB. I'm stuck.

  • @oshricohen3993
    @oshricohen3993 3 ปีที่แล้ว +1

    thank you!

  • @htcsaj7876
    @htcsaj7876 2 ปีที่แล้ว

    Great content.What other functionality can I add to this tutorial and where to find them.

  • @unmoybiswas5190
    @unmoybiswas5190 2 ปีที่แล้ว +1

    I have an issue at 3:34:17 where you simply update the qty from the cartItem and send the data to the parent component that is the cart screen. and the qty is updated in the cart and the data is showing, but in my situation when I update the qty in the cartItem section like you but I get a return of an array from the parent component which contains the actual object I want, can you please tell me why this is happening as the first time it was an object coming from the cart screen but after updating qty the data is coming as an array ?? BTW thanks for making such an amazing tutorial by explaining each detail.

  • @mohinderverma1765
    @mohinderverma1765 2 ปีที่แล้ว

    good tutorial, only caveat i see there is no backend dashboard, example how to upload and manage product seamless. hope to see in upcoming video.

  • @ramanjaneyappan7964
    @ramanjaneyappan7964 3 ปีที่แล้ว

    can you make video on how to integrate payment gateway for the shopping cart ?

  • @jiezhang6723
    @jiezhang6723 2 ปีที่แล้ว

    Nice video. I don't understand at 2:43:55. I looked at the entire cartReducer, for action ADD_TO_CART, you are checking the item for payload to see if it is in the cartItems. If it is (existItem is truthy), then why you map the cartItems again to add the item?

  • @thobelanitabalaza8566
    @thobelanitabalaza8566 2 ปีที่แล้ว +1

    Thank you ,Thank you Thank You, May God Bless you. From Stellenbosch ?

  • @emekaobasi4765
    @emekaobasi4765 2 ปีที่แล้ว

    I have an error, when sending a request for a particular product using id, the request gets sent with product. for example instead of sending a request to localhost/api/products/id, it sends to localhost/product/api/products/id. How can i fix this ?