How to Create a Express/Node + React Project | Node Backend + React Frontend

Поділитися
Вставка
  • Опубліковано 4 січ 2025
  • Hey guys, welcome back! In this video, I will be showing you how to create a project with an Express/Node backend and a React frontend. We will set up a backend API with Express that returns an array of users and in the frontend, we will fetch that backend and display the same users onto the frontend.
    If you don't know what Node is, Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. If you don't know what Express is, Express is a web framework for Node.js. It provides a robust set of features for building web applications, including routing, views, templates, and more.
    If you don't know what React is, React is a JavaScript library for building user interfaces. It is maintained by Facebook and Instagram. React's declarative, efficient, and flexible nature make it an ideal choice for building user interfaces.
    My Website: arpanneupane.com
    My GitHub: github.com/arp...
    Official Express Documentation: expressjs.com/
    Official React Documentation: reactjs.org/
    My Programming Gear :
    Keyboard: amzn.to/42vXkxh
    Laptop: amzn.to/3CkAP3W
    Laptop Stand: amzn.to/3X116Oi
    Desk: amzn.to/43wmIEt
    Monitor: amzn.to/42BAaFH
    Monitor Arm: amzn.to/3NR0APS
    Chair: amzn.to/42vvKAn
    Desk Mat/Mousepad: amzn.to/43AhKqj
    Microphone: amzn.to/45RuQ43
    Headphones: amzn.to/445sf4R
    #Express //#Node //#React // #LearnToCode

КОМЕНТАРІ • 564

  • @undertaker9138
    @undertaker9138 2 роки тому +350

    Absolute legend, explained it way faster and clearer than other tutorials. Thanks a million.

    • @ArpanNeupaneProductions
      @ArpanNeupaneProductions  2 роки тому +9

      Thank YOU for your support!

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

      Yes bro...superv explaination.. short and sweet

    • @praisennamonu76
      @praisennamonu76 4 місяці тому

      for me who wants to connect a website front end with the backend, i disagree. for simple applications, yh. but it isn't enough to cover for large projects

  • @Rashomon69
    @Rashomon69 Рік тому +74

    25 years a dev, here. This was just the right amount of detail. Quick, clean, and concise.
    Subbed!

  • @dlove1219
    @dlove1219 2 роки тому +85

    I'm in a coding bootcamp and your explanation was simpler and easier to understand. I learned more in your 12 minute video than in the 12 videos on this subject in my bootcamp. Thanks!

  • @smokecrack520
    @smokecrack520 Рік тому +3

    This is still relevant even after 2 years (node has had many changes and so has React) for anyone wondering :)
    Thanks man

  • @jasondemuro6882
    @jasondemuro6882 2 роки тому +17

    I have been looking for just a dead simple explanation for how to get a project like this started for a while and I just found this. Dude it’s awesome. Thanks for such a trimmed down streamlined explanation!

  • @PatrickRuckman-z5d
    @PatrickRuckman-z5d 18 днів тому +1

    I just found this, it was really good! It took me an afternoon, but I got my app working! I learned a lot.

  • @nathanpetain9079
    @nathanpetain9079 2 роки тому +13

    Literally fixed my lack of knowledge in 12 minutes! Thank you dude!

  • @ET_Bermuda
    @ET_Bermuda Місяць тому +1

    Hey, I know it's been a long time since you've made this video, but I just want to say thanks. I always return to this vid whenever I start a new project just to make sure that I get it right every time. Big thanks, man!

  • @hrushikeshtawde360
    @hrushikeshtawde360 Рік тому +3

    Legend bhai saw a ton of tutorials for hosting my api but yours was way too clean. Thanks a ton

  • @eborders100
    @eborders100 Рік тому +3

    thanks so much for this - I learned about web development through a bootcamp and they were so focused on just getting us up and running that we didn't get a lot of explanation to the specifics of what express was doing and how the client was getting data from the backend. This definitely cleared things up

  • @sahilchowdhury2229
    @sahilchowdhury2229 Рік тому +2

    This is crazy clear. I literally never comment on youtube videos, but I was working on something exactly like this and this was absolutely perfect! It's like you knew what I was thinking!

  • @jeremyrivera7615
    @jeremyrivera7615 2 роки тому +2

    The actual GOAT. I was wondering what the heck I was doing well since i started an ambitious early project but you gave me my confidence back

  • @fenix20075
    @fenix20075 2 роки тому +7

    I love this simple, straight forward description to display all these kind of powerful tools' functions and how it could be.

  • @xinwang4973
    @xinwang4973 2 роки тому +22

    for the mac users, if you have address already in use error,Apple introduced some changes for AirPlay on macOS Monterey. Now, it uses 5000 and 7000 ports. If you are using these ports in your project, you need to disable this feature.
    System Preferences > Sharing > untick AirPlay Receiver

  • @designordu159
    @designordu159 2 місяці тому

    concise, coherent, short, properly structured.. thanks a lot for this video

  • @Newstatejournal1
    @Newstatejournal1 Рік тому +2

    Excellent! All the other learning resources I have come across make the assumption that the student already has the same mental picture of the files and folder setup as the teacher has. Your video is clearest to me so far because I see the folders and files in Visual Studio explorer on the left and although I am not 100% sure, I think those folders and files represent the actual folders and files on the hard drive. What must be installed where is more clear to me now.

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

    the fact that you are 15 is super impressive bro. keep up the great work.. learned a lot from you.. you will have a very bright future young g!

  • @abubalo
    @abubalo 2 роки тому +12

    Eloquently explained. No wasting of time. Just fun to watch.

  • @isragaytanmistico
    @isragaytanmistico 11 місяців тому

    Thats a huge and a great explanation. Coming from the Data Engineering world Finally i understand Node, React and so on. God Bless you.

  • @agentebimene3737
    @agentebimene3737 2 роки тому +16

    Wow!! Teaching what seems to be difficult to many in a very relatable and brief way such as this is not something that is common in the world. I must add that this tutorial of yours is priceless. Keep it up

  • @TheInternalNet
    @TheInternalNet 10 місяців тому +1

    THIS IS THE VIDEO I HAVE SPENT WEEKS LOOKING FOR!! Thank you so much.

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

    could have watched an 8 hour code camp but i got exactly what i wanted to know from right here, cheers man

  • @kumarutsav1123
    @kumarutsav1123 10 місяців тому

    Humanity is prospering all because of contribution of people like you. Thanks

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

    Up-to-date video as today 29th september 2022, super helpful, I finally figured out how to connect a React client with an Express server. Big up!

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

    I am watching from Japan.
    The explanation was very easy to understand.
    Thank you so much for creating useful videos.

  • @ΤασουλακοςΤασουλινος

    Great video I couldn't connect my front-end and back-end "system" for months until now thank you!

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

    An absolute expert, they explained the information in a much quicker and more concise manner than other tutorials. Thank you so much.

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

    Maan I was searching like crazy to find something like ths, this is the first guide / tutorial that actually works!

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

    Great tutorial. I spent days trying to figure out how to connect BE and FE, and this video finally explained it clearly.

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

    i came from 0 bg in express and react api's, left with 100% of new information sound and clear

  • @kirillshevchenko7677
    @kirillshevchenko7677 2 місяці тому +1

    FINALLY
    i solved this problem
    THANK YOU SO MUCH

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

    thanks a lot man, I was trying to connect my front with my back and I had no idea, this tutorial is very clear and concise, thanks for what you did

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

    First and best tutorial with Node and React without indian talk, and bullshit talk. Thanks alot mate ! Keep up with this type of great content.

  • @DeadBabyFoetus
    @DeadBabyFoetus 2 роки тому +16

    The most concise video I've came across of connecting front-end to back-end, earned a subscriber!

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

      Thank you!!!

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

      @@ArpanNeupaneProductions This video is the best. This is how development should work. Most developers don't know shit, they just like to flex their muscles and do simple things in a complicated way for ego purposes. Would like to see how you implement Cordova Frontend and Express NodeJs Backend. Sure it would be similar. Nice video again

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

      @@jamesorior
      Thank you very much for your support. I haven’t used Cordova Frontend at all, however, you can use the same methodology described in the video. You can try finding a configuration file that can link with the Node backend via the API URL, then set up the backend the same way it’s set up in the video, and finally find a way to call the API in Cordova to display the data on the screen. Again, thank you for the support :)

  • @StevieComyn
    @StevieComyn 8 місяців тому

    Thank you for discribing this relationship clearly, I was struggling with getting backend data to the frontend, Liked and Subscribed!

  • @tanakachidemo
    @tanakachidemo Рік тому +4

    Thank you so much for a very clear and concise video. I have been learning a lot of these tools in isolation. It's good to see how they all fit together. Great work!

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

    This is the best video to get started with fullstack projects imo❤

  • @dallas8598
    @dallas8598 11 місяців тому

    Real helpful! Thought setting up an API was much harder but you made it look very easy!

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

    That was great short and to the point video on how full stack looks like on a simple level. Very helpful

  • @shawn.builds
    @shawn.builds 2 роки тому +1

    I watched a couple of tutorials and this was the best one. Thanks!

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

    This is the best I've seen this explained and it clicked so well (and quickly) watching your video. Thanks so much!!

  • @מוצריםלרכב
    @מוצריםלרכב Рік тому +1

    where can I add to my VSC project the express-react-project folder you opened at 0:25?

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

    Way clearer then any tutorial so far, thanks man. I was breaking my head over this…

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

    thank you for the tutorial, this saves me a lot of time! AWiting for your tutorial on how to connect the database to the project

  • @dupligae1326
    @dupligae1326 7 місяців тому

    Damn that was so informative! I have been looking up for quite some time , and this veedio shown up, most importantly it was exactly what I need, amazing!

  • @cryptofelix5242
    @cryptofelix5242 8 місяців тому

    Very helpful when you are just starting to work with Node.js, thank you!

  • @malikabdullah7709
    @malikabdullah7709 3 роки тому +11

    Thanks for this amazing video.
    it helped me understand, how frontend & backend exchange data.
    Thank very much

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

    Thanks, this was super helpful. Might be nice to see an updated version using Vite though, now that CRA is no longer maintained.

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

    Nice! I think most videos out there get bogged down and try to over explain or add content etc. This is so clean and literally all you need to get started.

  • @jarodmorris611
    @jarodmorris611 6 місяців тому

    Great tutorial. I have noticed that few tutorials explain how to deploy it to a live server. It makes sense considering how different servers can be, but it's frustrating for someone learning.

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

    thanks
    amazing
    love this quick
    I have been working as backend engineer for few months now
    thahanks

  • @bleulejour
    @bleulejour 2 роки тому +6

    Legend! super simple, concise and straight to the point. It would be nice to have tutorials about MERN from you :-)

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

    Fast, clean and on the point. Only tutorial you need.

  • @vladimir_nguyen
    @vladimir_nguyen 2 місяці тому

    Nice helpful video. Simplicity and pleasant voice. Thank you!

  • @EzraPoundForPound
    @EzraPoundForPound 2 роки тому +2

    By far the best, concise, easy to understand explanation video. Thanks for this.

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

    FANTASTIC! Great video! Very easy to follow. Keep pushing more videos.

  • @gudinaf5009
    @gudinaf5009 2 роки тому +4

    Perfect Explanation, this guy knows what we are looking for in a video

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

    Great way of teaching in less time ,am so satisfied. If you know basics then it will really help to how to setup and link the client and server

  • @mikaelmanninen9128
    @mikaelmanninen9128 3 місяці тому

    Thanks, quick and clear explanation. Saved alot of my time.

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

    hii bro i'm from tamil nadu, india.
    i really struggling to connect react to node(front end to back end) but you video really clear my problem. thanks to you bro.🥰🥰

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

    Amazing , going to watch more of your vids very smooth and clean explanation and not overly fast bravo

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

    woooow best video I have seen so straight to the point

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

    Thank you for making this as simple as possible.

  • @itzmickman7544
    @itzmickman7544 5 місяців тому

    Great video, you explained this fast but clear. Thank you

  • @Gotostep2
    @Gotostep2 Рік тому +2

    Express God Slaying Skills!
    EDIT: FYI, for those using vitejs, try this in your vite.config...
    export default defineConfig({
    plugins: Whatever plugins you use...
    server: {
    proxy: {
    '/api': {
    target: 'localhost:9000',
    changeOrigin: true,
    secure: false,
    }
    }
    }
    })

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

    Thank you so much! Your video is so clear that I was finaly able to understand how to setup my project.

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

    Amazing work man. Currently following along MDN's tutorial for Express and was wondering how the hell that would connect to React. Granted, I still am not finished with it but this is so much more understandable.

  • @tuner6914
    @tuner6914 9 місяців тому

    Explained precisely.. You can be a good professor.

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

    this is the most important video in this century!

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

    Great man U are Legend. i was struggling with this in last 7 days. keep it up man

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

    Exactly what I needed in less than 13 minutes. Amazing tutorial, tnx

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

    Subscribed! The way you explain and demonstrate is really really nice. I love it ❤!

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

    Best explaination! Been struggling to understand this concept. Now I got it!

  • @fourn7wenty
    @fourn7wenty Рік тому +2

    Awesome dude thank you. This made it way easier to get a start

  • @Bukosaure
    @Bukosaure 2 роки тому +5

    Seriously, you need to get more popular. The quality of this explanation is outstanding. Clear and concise. Also, what's the VS theme? :)

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

      Hi ! As it's been 2 months you asked the question, do you now know what's the VS theme ?

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

      @@gianni16 Dracula I believe

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

      @@camyana3986 Yes ! Thanks

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

    Awsome ... Tks ! Clear, fast and it works !!! Added and sharing ....

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

    Thank you! I’m new, and I was able to follow along and my little app is working! At first I put the “proxy” in the wrong pkg json but the realized it has to be in the client package.json (duh! Lol)

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

    You have some great videos. Subscribed. I am preparing to be a full stack engineer and these helped so much. Thank you, sir.

  • @proexpert7417
    @proexpert7417 11 місяців тому

    Thank you for the clear explanation, you got a new subscriber.

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

    This video is exactly what i needed! Thanks, and ill be checking out more of your vids!

  • @someone-k1t
    @someone-k1t 2 роки тому +1

    Absolutely what I was looking for. Thank you for the lesson.

  • @Mossy45
    @Mossy45 3 місяці тому

    This is such an amazing tutorial. Thank you so much!

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

    Great stuff, spent a long while trying to figure this out by myself - thanks!!

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

    You deserve more views!❤

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

    I needed these fundamentals and step by step quide .. thank you.

  • @androidKingforyou
    @androidKingforyou 6 місяців тому +2

    i have a question, if connecting node api with react app is so easy why is there packages like CORS, what are they doing? I am asking this question because i was stuck on connecting backend with frontend and ran in cross-origin problem, i tried many method by passing different arguments to CORS in server side, adding parameters to axios but none of it worked. after following your tutorial i removed all the extra CORS code and made api call with axios and it worked. Can you explain about cors package and likely reason why it was not working

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

    Thank you bro, you just set me up to finesse this project im working on.

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

    Just subbed! excelent explenation, and in depth commenting on what you were doing!

  • @Katsuchi23
    @Katsuchi23 5 місяців тому

    Thank you very musch for this. I finally understand how to connect these two 😉

  • @rxlvnd3397
    @rxlvnd3397 7 місяців тому

    This is exactly what I needed! Thanks a lot!

  • @lasithadulshan7357
    @lasithadulshan7357 Рік тому +2

    Thank you for saving my time ❤

  • @goodness776
    @goodness776 11 місяців тому

    simple & to the point. Cant say thank you enough 🙏🙏🙏🙏🙏🙏 !

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

    straight to the point......thanks a lot sir...

  • @OXIDE777-is6gs
    @OXIDE777-is6gs Рік тому +1

    Awesome bro, thanks for the tutorial!!

  • @ABHISHEKSingh-205
    @ABHISHEKSingh-205 Рік тому

    Awesome in 12min you explain so well bole to maza aagay. Please create medium level project using react and nodejs

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

    This was a great lesson. You are the man!!!!

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

    Great video ! Short, concise and clear. Love it.

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

    This is an amazing and effective lesson!
    Also it is a simple.
    Thank you!

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

    Give this guy a medal

  • @patriciamariegatchalian5940

    This video is coherent. Thank you for uploading