MERN Stack Tutorial - Book Store Project

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Learn the MERN stack (MongoDB, Express, React, Node.js) in this crash course for beginners. Here are some of the topics you will learn about:
    - Backend CRUD
    - Backend Router
    - CORS Policy
    - MongoDB operations
    - Frontend CRUD
    - Frontend Router
    💻 Code: github.com/mohammad-taheri1/B...
    ✏️ Course developed by @DevEmpower
    ⭐️ Contents ⭐️
    ⌨️ (00:00) Intro
    ⌨️ (01:10) Create Node.js project from scratch
    ⌨️ (03:39) Create our first Http Route
    ⌨️ (06:01) Add MongoDB and mongoose to node js
    ⌨️ (08:52) Create Book model with mongoose
    ⌨️ (10:53) Save a new Book with mongoose
    ⌨️ (13:31) Get All Books with mongoose
    ⌨️ (15:08) Get One Book by id with mongoose
    ⌨️ (16:29) Update a Book with mongoose
    ⌨️ (18:36) Delete a book with mongoose
    ⌨️ (20:09) Refactor Node js with express router
    ⌨️ (22:23) CORS policy in Node js and Express js
    ⌨️ (25:21) Create React project, Vite, Tailwind CSS
    ⌨️ (27:41) SPA and Add react router dom
    ⌨️ (29:52) Show Books List in React
    ⌨️ (35:39) Show Book Details in React
    ⌨️ (39:02) Create Book in React
    ⌨️ (42:02) Edit Book in React
    ⌨️ (44:27) Delete Book in React
    ⌨️ (46:35) Show Books List as Card
    ⌨️ (52:30) Make Book Card a single component
    ⌨️ (54:08) Add Book Modal
    ⌨️ (58:06) Improve User Experience (UX) with beautiful alert
    ⌨️ (1:01:43) Outro
    🎉 Thanks to our Champion and Sponsor supporters:
    👾 davthecoder
    👾 jedi-or-sith
    👾 南宮千影
    👾 Agustín Kussrow
    👾 Nattira Maneerat
    👾 Heather Wcislo
    👾 Serhiy Kalinets
    👾 Justin Hual
    👾 Otis Morgan
    👾 Oscar Rahnama
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

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

  • @DevEmpower
    @DevEmpower 6 месяцев назад +72

    My dear friends, I'm glad to be here. Thanks for watching this tutorial.
    Some of You have problems on different parts of this tutorial. But I cannot see the notifications of this video. In order to debug your codes:
    Please go to my channel and go to playlists section. There You can find the playlist of this tutorial in 22 tiny parts. I kindly ask you to implement codes exactly as those parts and in any time you faced an error or bug, please leave a comment there and talk about Your problem, This way, it is easier to debug the codes.
    Best,
    Mohammad

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

      I commented on the video on your channel. thanks

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

      @@atlmattador You're welcome 🌹

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

      @@DevEmpower i look forward to your reply on your video. at a standstill with it. thanks

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

      Although the title suggests - for beginners , you did not explain it in the way it should be for beginners. Could have written the code instead of copy pasting the code.

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

      @@kanishk1149 I respect your opinion. Let me explain about this video:
      The main purpose of a tutorial is to show You how You can implement something. So, in this video I explained everything line-by-line completely from scratch. And I showed the commands word by word. It is not a copy-pasting. In copy-pasting, The instructor will paste 100 line of codes and then just give you a quick overview of it😊.

  • @Dieregorn
    @Dieregorn 9 месяцев назад +130

    I appreciate this so much as a self taught fullstack student. My favourite side of the internet

    • @taborgreat
      @taborgreat 9 месяцев назад +16

      the only time you fail is when you give up !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! goodluck dieregorn!

    • @moestaxx286
      @moestaxx286 8 месяцев назад +2

      same. how is your journey going bro?

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

      same here, i love fCC

    • @kullanckullanc6077
      @kullanckullanc6077 5 месяцев назад +1

      Doing the project is beneficial, but if you don't have any connections, the job search process may take months, perhaps 6, 8, or even 12 months.

  • @marvellousodili5941
    @marvellousodili5941 9 месяцев назад +63

    The Chanel is Changing my life, I was just thinking how to learn backend and boom this video

    • @DevKhalid
      @DevKhalid 9 месяцев назад +2

      Same 😂

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

      Bruh same

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

      Same

    • @ci6516
      @ci6516 6 месяцев назад +1

      How is a nosql backend learning backend .

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

      Yeah I would love some Chanel to change my life too, kinda too expensive tho.

  • @abcdefg91111
    @abcdefg91111 4 месяца назад +8

    Very fast paced, clear and well instructed combined with the fundemental knowledge to get you started while also coding an application.
    One of the better tutorials i've encountered in my 4 years as self-taugth fullstack developer

  • @traezeeofor
    @traezeeofor 4 месяца назад +3

    Thanks so much for this. Especially loved the brevity. Speeding things up to show end product quickly. Putting control in the user's hand to pause when necessary, while cconsulting Github files for guidance.

  • @mycodeacademy189
    @mycodeacademy189 4 месяца назад +10

    My First MERN Stack Application, completed in just 3 days as a begginer🤩🤩
    seeing Mohammad Tahir as a mentor so glad.
    nice efforts to you and great for the channel

  • @julianifesiokwu8088
    @julianifesiokwu8088 7 месяцев назад +24

    Excellent work. This is my first full stack project to understand the connection between frontend and backend. Its a small project and the tutor really explained very important concepts in a concise one hour video. Excellent work. I have been looking for such as I am already a frontend and started delving into backend. THIS IS SO HELPFUL. YOU WONT REGRET IT. JUST ONE HOUR AS WELL. THANK YOU SO MUCH!!!!!

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

      Very nice how long have you been working on coding ?

  • @user-ni4xk8pg7r
    @user-ni4xk8pg7r 9 месяцев назад +19

    Great! Just what I can spend the weekend with. Thank you!

  • @webwisesagar
    @webwisesagar 5 месяцев назад +2

    Best tutorial for the developer who wants to learn how to integrate nodejs with React and also want to revise the node.js

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

    Wow, this MERN stack tutorial is an absolute gem! 🌟 The way you effortlessly navigate through MongoDB, Express, React, and Node.js is truly commendable. Your explanations are clear, concise, and make the entire MERN development process feel like a captivating journey.
    I appreciate how you break down complex concepts into easily digestible chunks, making it accessible for both beginners and seasoned developers. The seamless integration of frontend and backend technologies showcased in this video is not just informative but also a visual delight.
    Your passion for MERN stack development shines through, and it's contagious! Watching this tutorial has not only expanded my understanding of these technologies but has also inspired me to embark on my own MERN projects with newfound confidence.
    Thank you for sharing your expertise and making learning such a joyful experience. Looking forward to more insightful content from your channel! 👏🚀 #MERNStack #CodingJoy #TechExcellence

  • @shanawazbahadur7950
    @shanawazbahadur7950 5 месяцев назад +1

    Best course for the beginner for the MERN Stack development, who wants to learn MERN by creating a project I found this very helpful in brushing up all my skills as the project was in the most structured way possible

  • @m.c1299
    @m.c1299 2 месяца назад

    This was the best full stack video I have ever found I cant believe I understood how to build a basic full stack app in this video better then any other course ive done in the last two years lol

  • @aayushsingh74
    @aayushsingh74 9 месяцев назад +16

    I love this channel because of tutors like you, this channel really helped me to become a self taught Full Stack Engineer.

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

      Are u working}

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

      @@abhishekcode yes brother

    • @user-vm2wh1qm2b
      @user-vm2wh1qm2b 3 месяца назад +1

      Hello, I have a doubt, so the thing is I have interview to attend, in which they have mentioned mern stack as a requirement, but I don't have any knowledge about this topic
      Can I add this project for mern stack

  • @surajithalder3154
    @surajithalder3154 5 месяцев назад +1

    One of the best explanation in all over internet, i just love the level of simplicity he explained 👏👏🤝🤝

  • @apr670
    @apr670 2 месяца назад +2

    this is so cool, as a first time fullstack developer with zero experience, this is just enough to get started I believe so. Kudos!! thank you so much for sharing this tutorial. New subscriber!!!

  • @SaifKhan-ee7yn
    @SaifKhan-ee7yn 7 месяцев назад +2

    Amazing!! loved the tutorial, the project was simple and the way the tutor explained was amazing! was easy to follow the tutorial till the end!!

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

    I'm glad to have completed the full projects, and I'm looking to develop adding book covers/images and an authentication process.

  • @aloysiuschinemerem2648
    @aloysiuschinemerem2648 7 месяцев назад +1

    I really appreciate this tutorial as a FullStack self taught developer.

  • @user-pw3zn1ge2x
    @user-pw3zn1ge2x 5 месяцев назад +3

    Dear Mohammad, I recently had the opportunity to go through your MERN app tutorial and I found it to be quite interesting and useful. The code was clear, to the point and I learned a lot from it. Also, I must point out that I literally had no issues with either part of the tutorial - structure of the app is explained at lightning speed, yet nicely and I had no issues with the packages. I have noticed that a significant portion of the tutorial time was spent typing out the Tailwind CSS code, however I do understand the importance of styling. Think of it as a suggestion to, maybe, do the CSS separately so the focus is more on the MERN-specific aspects, unless you prefer Tailwind which is cool 'cause it looks cool, if anything. Thanks again for the great content! Nebojsa

  • @anandrp8456
    @anandrp8456 8 месяцев назад +16

    I refreshed my one year with one hour. Thank you :)

  • @rogut8
    @rogut8 6 месяцев назад +1

    @DevEmpower - thank you so much. Fantastic tutorial and great way of explaining. Plain and simple

  • @_Kunal_Pawar
    @_Kunal_Pawar Месяц назад

    Thanks so much for sharing this! I learned a ton, especially about how the frontend and backend play together. Really insightful stuff!

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

    Thank you so much. This tutorial was really helpfully. I successfully completed my first MERN stack application

  • @eriikelnino6545
    @eriikelnino6545 2 месяца назад

    I learnt a lot .. linking the frontend with backend ..Thank you so much for this beautiful crash course

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

    Wow, this tutorial is absolutely fantastic! 🚀 The step-by-step explanations were incredibly clear, making it easy for me to follow along and understand every concept Thank you so much for creating such an excellent tutorial! It's undoubtedly the best one I've come across. Keep up the great work!

  • @saturoGojo909
    @saturoGojo909 9 месяцев назад +4

    I was waiting for this video 😊

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

    Excellent Tutorial - really enjoyed it !

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

    Its nice code camp released new projects all the time because tech is changing so fast its nice to have up to date videos

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

    Awesome tutorial. I thought, the front end had bit of unnecessary use of few things which made it difficult to understand the react but, somehow you explained everything. Thanks

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

    Thank you for creating this training!

  • @Maverick-sv5qt
    @Maverick-sv5qt 3 месяца назад

    This is a great tutorial for those with frontend knowledge and strong js fundamentals. My tip is don't be intimidated by the code/syntaxes. Focus on the concept on how to build front and backend and how to connect and make them communicate. THANK YOU FOR THIS TUTORIAL!

    • @timstongaming
      @timstongaming Месяц назад

      Do you have any beginners backend project links?

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

    such a great tutorial and good pace. I especially love the middleware and other node js dependancies that you chose to use--thanks thanks!

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

    Great video!! Pasting all the code instead of writing it really kept the video from going boring/tedious.

  • @asheesh1540
    @asheesh1540 9 месяцев назад +7

    i love this channel,and when i get my first job preety soon , i will donate for you guys to continue this wonderful service

  • @yazmuratovezov4625
    @yazmuratovezov4625 9 месяцев назад +1

    Very good and simply explanation. Thanks

  • @DifficultWorld7
    @DifficultWorld7 9 месяцев назад +4

    Aaah something I was looking for Thanks

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

    I really appreciate this computer learning experience amazing

  • @BeyondTheLog108
    @BeyondTheLog108 5 месяцев назад +2

    Finally Completed the project Thanks🥰

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

    What a tutorial! Too Good. Wonderful!

  • @alihassanhaji2830
    @alihassanhaji2830 9 месяцев назад +1

    Oooh! Wonderful this was something i was looking for please add more project on MERN STACK and as well create about React Native Onces Thnks All 👌👌👌

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

    This was awesome. Thank you so much !

  • @mohammednasik6990
    @mohammednasik6990 6 месяцев назад +1

    Thank you so much man, wonderful teaching

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

    Awesome video before it I had no clue about MongoDB now I can make my db and some full stack apps. Thank you!

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

    Very good course content! 😀 Learnt a lot.

  • @AbdullahM-lc7le
    @AbdullahM-lc7le 26 дней назад

    great work brother,learned more from this.thank you, need more project like this

  • @antoniou.c.oliveira572
    @antoniou.c.oliveira572 9 месяцев назад +4

    Muito bom, muito obrigado 👏👏👏

  • @nernaykumar1481
    @nernaykumar1481 9 месяцев назад +4

    Certainly, I hope that watching this video will help me succeed in my job interview.😂

  • @shahriar_ferdous
    @shahriar_ferdous 9 месяцев назад +3

    Waited for this one

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

    Thanks so much for this course. The best course for the beginner easy to learn MERN stack

  • @MukeshKumar-tu9iw
    @MukeshKumar-tu9iw 13 дней назад

    one of the best video to learn mern👏👏👏

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

    Simple and awesome tutorial 🤘👏

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

    Thanks for the video. Really appreciate it!

  • @chinchilimohit2600
    @chinchilimohit2600 Месяц назад

    Great tutorial! Simple project explaining the basics well.

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

    I must say Thank You for the incredible guide! It took me about 2 weeks between watching children and helping run a house, but all of it was worth it to see the finished project on screen!
    Thank you for the awesome, very well-detailed guide!

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

      Very good how long have you been coding ?

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

    excellent tutorial. Really helpful

  • @sabatauqeer1
    @sabatauqeer1 2 месяца назад +2

    those who dont see books in frontend and thier code is correct this may solve your problem as it did work for me
    check brackets after (book,index)
    wrong: (book, index) {}
    correct :(book,index)()
    hope this helps

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

    awesome tutorial, learnt a lot handson, really appreciate.

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

    Amazing!! loved it

  • @sahilsagwekar
    @sahilsagwekar 9 месяцев назад +11

    10:51 the schema is updated but the model is still named "Cat", you need to change it to "Book"

    • @muneeburrehman547
      @muneeburrehman547 9 месяцев назад +1

      now shown in the video but he definitely would have changed it😂😂😂😂😂😂

    • @dudjcjtue9w91
      @dudjcjtue9w91 8 месяцев назад +1

      also _id: String , to include in book model? 404 request are not working

  • @ainbrisk545
    @ainbrisk545 2 месяца назад

    very nice tutorial, as a intermediate dev the speed was nice.

  • @DevMule-zd2ty
    @DevMule-zd2ty 6 месяцев назад

    thank you so much!!! this is really useful video for beginners and intermidate developers.

  • @user-mh3fx2sw5z
    @user-mh3fx2sw5z 9 месяцев назад +19

    just completed the tutorial took almost 13 hours over the span of three days, overall nice tutorial👍👍

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

      Glad to hear that

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

      Hey bro can send the project

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

      @@omkar00097 check description and there you can see a github link to the project

    • @garimanagarwal1571
      @garimanagarwal1571 7 месяцев назад +1

      .find and .create methods are not working

    • @user-mh3fx2sw5z
      @user-mh3fx2sw5z 6 месяцев назад

      @@garimanagarwal1571 share error and code(github)

  • @Srihari-Developer
    @Srihari-Developer 3 месяца назад

    Loved this tutorial!

  • @stephenkinnear7442
    @stephenkinnear7442 Месяц назад

    Thanks for this video, Helped allot. Keep up the good work.

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

    awesome tutorial. i need this so much!

  • @user-pv7xc3cn6g
    @user-pv7xc3cn6g 3 месяца назад

    Thank you so much for the tutorial !

  • @Thecodestar
    @Thecodestar 9 месяцев назад +1

    Always ready for coding

  • @dev_tuts
    @dev_tuts День назад

    This is great! Thanks

  • @vaishnavisingh4882
    @vaishnavisingh4882 2 месяца назад

    The video was very helpful helped me strengthen my concepts and helped me learn new and better coding practices Thanks a lot for the video!!!!!!!!!!!!!!!!!!!!!!!

  • @redon638
    @redon638 6 месяцев назад +1

    Now I can add these to my resume

  • @bimsarajayasena-jr9bd
    @bimsarajayasena-jr9bd Месяц назад

    crystal clear,thank you very much

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

    Thank you for this!!

  • @cykoravish176
    @cykoravish176 8 месяцев назад +1

    Amazing project

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

    This is a veru helpfull and clear project, thanku!

  • @rajaRaja-vq5vo
    @rajaRaja-vq5vo Месяц назад

    excellent tutorial ..enjoyed it

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

    Beautiful!

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

    Very good Step by Step teaching...😊

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

    I really enjoyed the tutorial. Easy to understand😉😉

  • @hmlsnt5134
    @hmlsnt5134 8 месяцев назад +1

    Great video this help me learn a lot more about MERN stack. I wasn't expecting the tailwind css tho.

    • @Winriii
      @Winriii 7 месяцев назад +1

      Yeah, I can confidently add tailwind to my resume skill list now. Pretty damn useful.

  • @natnmk1837
    @natnmk1837 Месяц назад

    it helps a lot Thanks and I expect more ...

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

    thanks this was clear and understandable.

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

    Thanks! For this video.

  • @yassermelki9175
    @yassermelki9175 6 месяцев назад +1

    That was Great ! Thanks

  • @lias934
    @lias934 23 дня назад

    *Mind-blowing dude! Loved this! Thanks a bunch*
    ❤❤ 💯💯 ⚡⚡
    _P.s.- must have basic knowledge of MERN STACK before delving into project making!_
    Happy coding! 😊

  • @M_code_H
    @M_code_H Месяц назад

    best explication thank you so much

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

    Thank you so much it's really help me.

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

    Excellent work🤩🤩🤩

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

    this guys accent is soo thick i barely understood what he was saying yet i understood what was happening 10/10

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

      only MERN project tutorial that ive completed great work!

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

    Thanks Great Tutorial

  • @user-ng1lv5pr3n
    @user-ng1lv5pr3n 7 месяцев назад

    would be great if you can show how to deploy with this mono-repo setup

  • @terokmaximus6841
    @terokmaximus6841 7 месяцев назад +5

    Just finished the whole tutorial.. It was so awesome..teacher is very good. Learned lot of new things.. Now im gonna deploy this.

    • @crosswalker45
      @crosswalker45 7 месяцев назад +1

      hello,,, can you plz explain how your'e going to upload this project?

    • @terokmaximus6841
      @terokmaximus6841 7 месяцев назад +3

      @@crosswalker45 you can deploy the backend to render and use that api link in front end.. You can host the fronted to netlify.

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

      ​@@terokmaximus6841how can I do that? Can you refer me any good video/blog?

    • @HonestGuy-xg7vl
      @HonestGuy-xg7vl 7 месяцев назад

      ​@@terokmaximus6841also say how to deploy backend website projects.

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

      ​@@terokmaximus6841hey could you please help me I hv some questions}?

  • @Zycon10
    @Zycon10 5 месяцев назад +2

    18:03
    If the PUT request for updating isn't working for you:
    In postman, try checking the Headers section and see if "Content-Type" is set to the value "application/json"
    If its not there , add it.

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

    This video is absolutely useful for me, thank you so much. Worth the money for internet kk :D

  • @amanet126
    @amanet126 6 месяцев назад +1

    This is Great tutorial🙏

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

    Amazing!!

  • @Newcomer_7
    @Newcomer_7 9 месяцев назад +1

    If jobs had where you learn from options I will proudly say your channel name❤

  • @ol8341
    @ol8341 6 месяцев назад +1

    Awesome MAN

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

    Great video!

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

    This is Great!

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

    @DevEmpower Thank you for the video. I have been working on building the project but I am experiencing problems with the Get All Books with Mongoose part. When I use the get request on Postman it gives me error 404, however the Post request worked out fine. I checked if whether my code was correct multiple times, and it was, can you kindly assist me on what i might be missing?