No video
ExpressJS Routes Tutorial - Separating Routes into Different Files
In this video I will teach you guys how to separate your ExpressJS / NodeJS api into separate routes in different files. This video was requested by a subscriber, so I decided to talk about it!
-
🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
Please leave a comment on what topic you guys want me to cover next!
-
📞 Tutoring Session: www.fiverr.com...
💻 PedroTech Discord: / discord
-
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: machadopedro.com
Twitter: / pedrotech_
Linkedin: / machadop1407
Instagram: / _pedro.machado_
Github: github.com/mac...
Email: machadop1407@gmail.com
Tags:
- ExpressJS / NodeJS
- Routes / Router / app.Router()
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial
Пікірлер: 144
Pedro is a man of culture with that PORT number ;)
@bilalrasheed8272
Жыл бұрын
🤣🤣
@Humperpump
Жыл бұрын
nice
Once again one of Pedro's video's has just helped me understand an issue that has been driving me nuts for about 2 days. Just such a good youtube channel.
I am a Student for Fintech for non tech professionals. Been overwhelmed with the crash course workload, and not getting anywhere. Your videos helps me to understand the loads of codings thrown on us. Although I had difficulty following your videos as you speak pretty quick, but mostly due to my lack of knowledge. I am learning daily, and your channel has many lessons i need to learn for my course. Especially your new fullstack series. I am just starting with video 2. Took me 2-3 days to get all the dependencies and mySQL to work as in your video. Look forward to completing your fullstack series. You have individual videos targeted to this series, like the sequelize, Express etc, which helps me understand the whole process better. Hope you will have more videos targeted to Fintech and basic Blockchain technologies. Thanks very much and look forward to learn more from you!!
I was also confused how to create separate routes for each REST API. Now , i got a clear idea how to achieve that and make the filer readable without so much of cluster. Thanks Bro. Hereafter , i will watch your entire video on node to understand it well.
@PedroTechnologies
3 жыл бұрын
Glad it helped! I will make a full introduction to node/express video soon!
Hi, Pedro. Thanks for the direct simple explanation on how to better organize the files. I certainly have one or two projects that will benefit from it. 😅
The way you taught this modular approach is so much clearer because it's funny that i've watched 3 videos on express routing before I've seen yours, and the previous 3 videos didn't go as detailed as what you did here, which is very helpful for my understanding. Call me dumb, but I only learn from videos that actually makes sense, and your channel has done a lot of good for me, cheers Pedro! The simple tutorials broken down into detailed explanation will help someone out there and thank you for it! (like me!)
I wonder why your subscribers didn't reach in millions yet. Your videos are so enlightening
The best explanation I've found on routes and exports, thank you
Straight to the business \m/ love your work man
Excellent tutorial! Really helped me grasp this content without bloating the example with unrelated code
It's been a few days I couldn't watch your videos man! We are close to 2.5k 🔥💪
@PedroTechnologies
3 жыл бұрын
Welcome back! Yeah we r going like crazy hahaha Thanks bro! You are one of my most loyal subs
bro your channel is too good! please continue being this awesome!!
XD it's like you know what i want to learn bruh. Yesterday i read express documentation, just curious. And now your video about express is coming. Awesome and thank you xD
@PedroTechnologies
3 жыл бұрын
Lmaoo Thanks Bro! I am happy you are liking the videos!
Excellent video. Exactly what I needed, the foundation of express router! Well done 👍
I really appreciate the content you have provided. I mean, I've payed for a subscription to Udemy, but the teachers aren't the best. It's almost like they just want to talk. You, my friend, have created many videos with a a humble approach. You teach, give solid information, and you move on.
This is an excellent explanation of express routes!
I love direct, simple and very understandable Explanation like this
You are so perfect teacher, maybe the best on yt!
Best web devloper
This was really very helpful to me, thank you so much bro.
You just helped me out a lot. I had all my node app in the app.js file. First time dev so...
Thanks man, been building a full stack MERN app (while learning as I go) and this helped!
This is a really nice video! Thanks, Pedro!
Simple, on point and amazing tutorial👍🏻
Thank you so much. This is the simple way to routing i found in youtube
Hello! Thank you very much for making this video. It really helped
Explain the concept beautifully thanks
we should coin a new phrase: Lets PedroTech and chill ha ha. New content every day.
@PedroTechnologies
3 жыл бұрын
Lmaoo Thanks Bro! Imma post everyday till I can't possibly do that hahaha Im in exam season so thats why im not posting saturdays, but new content comes out every day!
@TheCodingOdyssey
3 жыл бұрын
@@PedroTechnologies I'm impressed how you find the time bro! But honestly I think your channel will rise very fast! It will be called The rise of Pedro hhaha
@PedroTechnologies
3 жыл бұрын
Hahaha I hope! 🙏 I start working at 6 am and stop around 8-9 pm lmaoo I do all my editing and posting in the morning, study the rest of the day, go to the gym at 2, go to my swe job at 6, record my next day's video at 10 hahaha Its been crazy, but I hope it pays off!
@TheCodingOdyssey
3 жыл бұрын
@@PedroTechnologies I love the grind mentality! much luck bro!
this is a very simple and nice video than other videos, thanks buddy
Fantastic tutorial. Subscribed!
U r way of explanation is awesome bro..
thank you sir! it's simple, clear, and easy-to-understand for me.
ExOeactly what I was looking for, thanks a bunch!
Top stuff, thanks Pedrão!
Hi. Thank you my friend. I'va not understand yet, but I'm on the highway to success...
Pedro my man, thanks so much
Very useful video, thanks Perdo!
Thanks a lot for this tutorial Pedro!
Very helpful, better than my professor!
nicely explained , very clear. thank you
Tutorials combining Express & Firebase Cloud Functions would be a great tutorial. Could even start demonstrating Backend for Front End Apps using Cloud Functions
thanks bro. This video was really helpful.
Router is an object then how can we pass it to a middleware as middleware ( app.use()) required a function instead of object
Best PORT number ever!
Brilliant explanation😀
Awesome information brotha 👏
Wonderful explanation for routes . Thank you..
@PedroTechnologies
3 жыл бұрын
Glad you liked it
hey You explained very well,Thanks
Thanks this is what i was looking for
hats off to your PORT number bro .👍😂😂
How this explain the routes so easy. Had a hard time debugging my app
finally i understood it , thank you
This is really good thanks
Great work… this helped a lot!
some point arnt really clear but it worked ,thanks
Hi , i am beginner in react and wants to know the difference between React Router and Epress Js Router?
I was finding this. thanks.
Great video 😊
thanks, watched yours with interest.
This was so helpful thank you so much
thank you you streamlined well this subject
You helped me a lot bro, thanks
Hello Pedro, I was trying to route to profile on click of login button. I can't really figure out how to do this. I have watched all your register n login videos in react. Please help
@PedroTechnologies
3 жыл бұрын
Hey, if you are using react there are two ways of doing this. One way is adding: window.location.pathname = "/profile" in the function called for login. The other way is using React router's dom useHistory hook, I have a videon on this.
@eduket7731
3 жыл бұрын
Thanks again man, I was able to use react useHistory hook to navigate to profile page and display login details. I used useEffect in the profile page. Unfortunately the login details disappear when I refresh the page. But the id I used in the params remains in URL?. Please help. The useEffect doesn't seem to rerender when I refresh the page!
Esse sotaque português! Bom vídeo, ajudou bastante
you saved my life
Dears, Nice explanation, but what about if the call back function is controller, can you make simple recording on that too, it would be much appreciated
Can you please tell how to design industry standard node js backend
Thank you very much for this helpful video 👍
Is it possible to create an appointment booking app? To setup appointments with clients.
@jonanddy
5 ай бұрын
anything is possible
Noice port number
@PedroTechnologies
3 жыл бұрын
Lmao I swear I didn't realize untill people started mentioning it
@shubhamtarkar38
3 жыл бұрын
@@PedroTechnologies lol
@sk2279
2 жыл бұрын
Was gonna post the same
Awesome Video Thank You! You should do one for React as well.
@PedroTechnologies
3 жыл бұрын
Thank you! I have a full React Router Dom Tutorial: kzread.info/dash/bejne/rHWZ06qjeLS7j7g.html
@rolandraphael9087
3 жыл бұрын
I know Im pretty randomly asking but do anyone know of a good website to watch newly released series online ?
@stanleydeclan4182
3 жыл бұрын
@Roland Raphael try FlixZone. Just google for it :)
@javiermajor9522
3 жыл бұрын
@Stanley Declan yup, I have been using Flixzone for since march myself :D
@rolandraphael9087
3 жыл бұрын
@Stanley Declan thank you, signed up and it seems like they got a lot of movies there :) I really appreciate it !
Hello PedroTech , your tuto help me very well and thank for that , but i ' have an other question .I love node js but i don't know how to do some functionaly with it such as: users roles and permissions , and multiple database connection .
@PedroTechnologies
3 жыл бұрын
Hey, thank you! I have a video on user roles using react, node and express. However if you're not using react its the same idea, just create a role column in your database and use that to manage roles and permissions. Also, if you want to have two databases in your project, you can just connect to both of them the same way you would connect to one of them, but doing it twice.
@moussasangare5640
3 жыл бұрын
@@PedroTechnologies Ok thanks sir
Thanks, love from Pakistan 💖
nice port number
Como é hábito, excelente produto! Parabéns!
Thanks a lot really helpful video but it would have been better to use nodemon with it.
Excellent introduction on Express Routing. Thanks. {2022-06-10}
Thank you
THANK YOU!
Great Video . Thanks...!
good video budy
THANK YOU SO MUCH
This isn't working with Heroku server, any suggestions?
Thnx, u r so helpful...
@PedroTechnologies
3 жыл бұрын
Happy to help!
Huge Thanks
Thank You Very Much
Thank you so much.
AMAZING
Thank you so much!!
Hello, any tutorial on subdomain routing in express?
Thanks!
awesome video thank you
thank you sir, i appreciate
thank you, GBU!
thanks lot bro well explained
@PedroTechnologies
3 жыл бұрын
Glad you liked it
thank you
thanks a lot👍👍
actually I've got the whole concept
Thanks a lot😀
@PedroTechnologies
3 жыл бұрын
Ur welcome! I am happy to help!
Thanks