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
Absolute legend, explained it way faster and clearer than other tutorials. Thanks a million.
Thank YOU for your support!
Yes bro...superv explaination.. short and sweet
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
25 years a dev, here. This was just the right amount of detail. Quick, clean, and concise.
Subbed!
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!
Awesome!
What bootcamp were you in???
This is still relevant even after 2 years (node has had many changes and so has React) for anyone wondering :)
Thanks man
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!
I just found this, it was really good! It took me an afternoon, but I got my app working! I learned a lot.
Literally fixed my lack of knowledge in 12 minutes! Thank you dude!
Of course dude!
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!
Thank you for the continued support :)
Legend bhai saw a ton of tutorials for hosting my api but yours was way too clean. Thanks a ton
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
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!
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
Thank you!
I love this simple, straight forward description to display all these kind of powerful tools' functions and how it could be.
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
concise, coherent, short, properly structured.. thanks a lot for this video
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.
You're right!
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!
Eloquently explained. No wasting of time. Just fun to watch.
Thank you!
Thats a huge and a great explanation. Coming from the Data Engineering world Finally i understand Node, React and so on. God Bless you.
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
THIS IS THE VIDEO I HAVE SPENT WEEKS LOOKING FOR!! Thank you so much.
could have watched an 8 hour code camp but i got exactly what i wanted to know from right here, cheers man
Humanity is prospering all because of contribution of people like you. Thanks
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!
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!
An absolute expert, they explained the information in a much quicker and more concise manner than other tutorials. Thank you so much.
Maan I was searching like crazy to find something like ths, this is the first guide / tutorial that actually works!
Thank you!
Great tutorial. I spent days trying to figure out how to connect BE and FE, and this video finally explained it clearly.
i came from 0 bg in express and react api's, left with 100% of new information sound and clear
FINALLY
i solved this problem
THANK YOU SO MUCH
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
You’re welcome!
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.
The most concise video I've came across of connecting front-end to back-end, earned a subscriber!
Thank you!!!
@@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
@@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 :)
Thank you for discribing this relationship clearly, I was struggling with getting backend data to the frontend, Liked and Subscribed!
Thanks for the sub!
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!
This is the best video to get started with fullstack projects imo❤
Real helpful! Thought setting up an API was much harder but you made it look very easy!
That was great short and to the point video on how full stack looks like on a simple level. Very helpful
I watched a couple of tutorials and this was the best one. Thanks!
Glad I could help!
This is the best I've seen this explained and it clicked so well (and quickly) watching your video. Thanks so much!!
where can I add to my VSC project the express-react-project folder you opened at 0:25?
Way clearer then any tutorial so far, thanks man. I was breaking my head over this…
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
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!
Very helpful when you are just starting to work with Node.js, thank you!
Thanks for this amazing video.
it helped me understand, how frontend & backend exchange data.
Thank very much
You're welcome!
Thanks, this was super helpful. Might be nice to see an updated version using Vite though, now that CRA is no longer maintained.
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.
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.
thanks
amazing
love this quick
I have been working as backend engineer for few months now
thahanks
Legend! super simple, concise and straight to the point. It would be nice to have tutorials about MERN from you :-)
Fast, clean and on the point. Only tutorial you need.
Nice helpful video. Simplicity and pleasant voice. Thank you!
By far the best, concise, easy to understand explanation video. Thanks for this.
Thank you so much! It means a lot!
FANTASTIC! Great video! Very easy to follow. Keep pushing more videos.
Perfect Explanation, this guy knows what we are looking for in a video
Thank you!
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
Thanks, quick and clear explanation. Saved alot of my time.
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.🥰🥰
Amazing , going to watch more of your vids very smooth and clean explanation and not overly fast bravo
woooow best video I have seen so straight to the point
Thank you for making this as simple as possible.
Great video, you explained this fast but clear. Thank you
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,
}
}
}
})
Thank you so much! Your video is so clear that I was finaly able to understand how to setup my project.
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.
Explained precisely.. You can be a good professor.
this is the most important video in this century!
Thanks!
Great man U are Legend. i was struggling with this in last 7 days. keep it up man
Glad to help!
Exactly what I needed in less than 13 minutes. Amazing tutorial, tnx
Subscribed! The way you explain and demonstrate is really really nice. I love it ❤!
Best explaination! Been struggling to understand this concept. Now I got it!
Awesome dude thank you. This made it way easier to get a start
Seriously, you need to get more popular. The quality of this explanation is outstanding. Clear and concise. Also, what's the VS theme? :)
Hi ! As it's been 2 months you asked the question, do you now know what's the VS theme ?
@@gianni16 Dracula I believe
@@camyana3986 Yes ! Thanks
Awsome ... Tks ! Clear, fast and it works !!! Added and sharing ....
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)
You have some great videos. Subscribed. I am preparing to be a full stack engineer and these helped so much. Thank you, sir.
Thank you!
Good luck!
Thank you for the clear explanation, you got a new subscriber.
This video is exactly what i needed! Thanks, and ill be checking out more of your vids!
I appreciate it!! Thank you!
Absolutely what I was looking for. Thank you for the lesson.
This is such an amazing tutorial. Thank you so much!
Great stuff, spent a long while trying to figure this out by myself - thanks!!
You deserve more views!❤
I needed these fundamentals and step by step quide .. thank you.
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
Thank you bro, you just set me up to finesse this project im working on.
Of course!
Just subbed! excelent explenation, and in depth commenting on what you were doing!
Thank you very musch for this. I finally understand how to connect these two 😉
This is exactly what I needed! Thanks a lot!
Thank you for saving my time ❤
simple & to the point. Cant say thank you enough 🙏🙏🙏🙏🙏🙏 !
straight to the point......thanks a lot sir...
Awesome bro, thanks for the tutorial!!
Awesome in 12min you explain so well bole to maza aagay. Please create medium level project using react and nodejs
Will try
This was a great lesson. You are the man!!!!
Great video ! Short, concise and clear. Love it.
This is an amazing and effective lesson!
Also it is a simple.
Thank you!
Give this guy a medal
Haha
This video is coherent. Thank you for uploading