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

  • @yazeezy4425
    @yazeezy4425 Жыл бұрын

    Pedro is a man of culture with that PORT number ;)

  • @bilalrasheed8272

    @bilalrasheed8272

    Жыл бұрын

    🤣🤣

  • @Humperpump

    @Humperpump

    Жыл бұрын

    nice

  • @jtaylor8606
    @jtaylor8606 Жыл бұрын

    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.

  • @chyejoo
    @chyejoo3 жыл бұрын

    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!!

  • @shibinraja
    @shibinraja3 жыл бұрын

    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

    @PedroTechnologies

    3 жыл бұрын

    Glad it helped! I will make a full introduction to node/express video soon!

  • @GeorgesMayrink
    @GeorgesMayrink2 жыл бұрын

    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. 😅

  • @STUPIDYOUTUBE_HIDINGMSGS
    @STUPIDYOUTUBE_HIDINGMSGS2 жыл бұрын

    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!)

  • @user-qn7kq6yi5d
    @user-qn7kq6yi5d3 ай бұрын

    I wonder why your subscribers didn't reach in millions yet. Your videos are so enlightening

  • @hxauax
    @hxauax Жыл бұрын

    The best explanation I've found on routes and exports, thank you

  • @shubhamkamdi6606
    @shubhamkamdi6606Ай бұрын

    Straight to the business \m/ love your work man

  • @jasonxb2998
    @jasonxb2998 Жыл бұрын

    Excellent tutorial! Really helped me grasp this content without bloating the example with unrelated code

  • @f3-faithfitnessfinance
    @f3-faithfitnessfinance3 жыл бұрын

    It's been a few days I couldn't watch your videos man! We are close to 2.5k 🔥💪

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Welcome back! Yeah we r going like crazy hahaha Thanks bro! You are one of my most loyal subs

  • @skl949
    @skl9492 жыл бұрын

    bro your channel is too good! please continue being this awesome!!

  • @ilhamadiputra4745
    @ilhamadiputra47453 жыл бұрын

    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

    @PedroTechnologies

    3 жыл бұрын

    Lmaoo Thanks Bro! I am happy you are liking the videos!

  • @richard1991ish
    @richard1991ish7 ай бұрын

    Excellent video. Exactly what I needed, the foundation of express router! Well done 👍

  • @itsnobledean9450
    @itsnobledean94508 ай бұрын

    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.

  • @neilranada
    @neilranada Жыл бұрын

    This is an excellent explanation of express routes!

  • @PixelCowboy
    @PixelCowboy Жыл бұрын

    I love direct, simple and very understandable Explanation like this

  • @negros111
    @negros1119 ай бұрын

    You are so perfect teacher, maybe the best on yt!

  • @Bob-bl1ey
    @Bob-bl1ey9 күн бұрын

    Best web devloper

  • @mohammadmohabsarhan3961
    @mohammadmohabsarhan39614 ай бұрын

    This was really very helpful to me, thank you so much bro.

  • @christmascatalogue
    @christmascatalogue2 жыл бұрын

    You just helped me out a lot. I had all my node app in the app.js file. First time dev so...

  • @sandgar1001
    @sandgar1001 Жыл бұрын

    Thanks man, been building a full stack MERN app (while learning as I go) and this helped!

  • @ThColinPereira
    @ThColinPereira3 жыл бұрын

    This is a really nice video! Thanks, Pedro!

  • @AAfzal-lk2nf
    @AAfzal-lk2nf4 ай бұрын

    Simple, on point and amazing tutorial👍🏻

  • @mdnuruddinadnan8
    @mdnuruddinadnan8 Жыл бұрын

    Thank you so much. This is the simple way to routing i found in youtube

  • @abhinav788
    @abhinav788 Жыл бұрын

    Hello! Thank you very much for making this video. It really helped

  • @Raj10185
    @Raj101857 ай бұрын

    Explain the concept beautifully thanks

  • @TheCodingOdyssey
    @TheCodingOdyssey3 жыл бұрын

    we should coin a new phrase: Lets PedroTech and chill ha ha. New content every day.

  • @PedroTechnologies

    @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

    @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

    @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

    @TheCodingOdyssey

    3 жыл бұрын

    @@PedroTechnologies I love the grind mentality! much luck bro!

  • @haritmakwana6296
    @haritmakwana62962 жыл бұрын

    this is a very simple and nice video than other videos, thanks buddy

  • @elfrompo6771
    @elfrompo6771 Жыл бұрын

    Fantastic tutorial. Subscribed!

  • @amrutjagtap5127
    @amrutjagtap5127 Жыл бұрын

    U r way of explanation is awesome bro..

  • @anangyoga1381
    @anangyoga13813 жыл бұрын

    thank you sir! it's simple, clear, and easy-to-understand for me.

  • @dollboy4113
    @dollboy41133 жыл бұрын

    ExOeactly what I was looking for, thanks a bunch!

  • @rhenanfreire9143
    @rhenanfreire91432 жыл бұрын

    Top stuff, thanks Pedrão!

  • @guillaumedurant7647
    @guillaumedurant76477 ай бұрын

    Hi. Thank you my friend. I'va not understand yet, but I'm on the highway to success...

  • @krishanthadharmasiri7725
    @krishanthadharmasiri7725Ай бұрын

    Pedro my man, thanks so much

  • @praffsphr1136
    @praffsphr11362 жыл бұрын

    Very useful video, thanks Perdo!

  • @k303k
    @k303k Жыл бұрын

    Thanks a lot for this tutorial Pedro!

  • @savannahshannon7868
    @savannahshannon7868 Жыл бұрын

    Very helpful, better than my professor!

  • @rachealiperu9375
    @rachealiperu93753 ай бұрын

    nicely explained , very clear. thank you

  • @michaelhuskey2608
    @michaelhuskey2608 Жыл бұрын

    Tutorials combining Express & Firebase Cloud Functions would be a great tutorial. Could even start demonstrating Backend for Front End Apps using Cloud Functions

  • @aasifali9139
    @aasifali913910 күн бұрын

    thanks bro. This video was really helpful.

  • @sachintendulkar1122
    @sachintendulkar1122 Жыл бұрын

    Router is an object then how can we pass it to a middleware as middleware ( app.use()) required a function instead of object

  • @k.ashutoshbaitharu3964
    @k.ashutoshbaitharu3964 Жыл бұрын

    Best PORT number ever!

  • @stanislavus
    @stanislavus Жыл бұрын

    Brilliant explanation😀

  • @sanjay2102
    @sanjay21028 ай бұрын

    Awesome information brotha 👏

  • @richcaro3132
    @richcaro31323 жыл бұрын

    Wonderful explanation for routes . Thank you..

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Glad you liked it

  • @amitpotghan9569
    @amitpotghan95694 ай бұрын

    hey You explained very well,Thanks

  • @Shiv-vb1re
    @Shiv-vb1re3 жыл бұрын

    Thanks this is what i was looking for

  • @gurpreetsandhu9530
    @gurpreetsandhu9530 Жыл бұрын

    hats off to your PORT number bro .👍😂😂

  • @luiscazares8678
    @luiscazares8678 Жыл бұрын

    How this explain the routes so easy. Had a hard time debugging my app

  • @Joe-ka
    @Joe-ka2 жыл бұрын

    finally i understood it , thank you

  • @user-um7tw6kx4r6
    @user-um7tw6kx4r6 Жыл бұрын

    This is really good thanks

  • @lamarlewis7638
    @lamarlewis7638 Жыл бұрын

    Great work… this helped a lot!

  • @izarhalabi7354
    @izarhalabi73542 ай бұрын

    some point arnt really clear but it worked ,thanks

  • @kishorkumarsingh9072
    @kishorkumarsingh9072 Жыл бұрын

    Hi , i am beginner in react and wants to know the difference between React Router and Epress Js Router?

  • @asadullah7324
    @asadullah73242 жыл бұрын

    I was finding this. thanks.

  • @sayeesreeram
    @sayeesreeram2 жыл бұрын

    Great video 😊

  • @arnoldasmatijosius5154
    @arnoldasmatijosius51542 жыл бұрын

    thanks, watched yours with interest.

  • @saumyakumarasinghe4531
    @saumyakumarasinghe4531 Жыл бұрын

    This was so helpful thank you so much

  • @oussemabouyahia474
    @oussemabouyahia474 Жыл бұрын

    thank you you streamlined well this subject

  • @kacperstepien8640
    @kacperstepien8640 Жыл бұрын

    You helped me a lot bro, thanks

  • @eduket7731
    @eduket77313 жыл бұрын

    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

    @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

    @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!

  • @miguelfonseca186
    @miguelfonseca186 Жыл бұрын

    Esse sotaque português! Bom vídeo, ajudou bastante

  • @Rin-dk1oo
    @Rin-dk1oo Жыл бұрын

    you saved my life

  • @sayhussain007
    @sayhussain007 Жыл бұрын

    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

  • @CashHotel-xl2ih
    @CashHotel-xl2ih10 ай бұрын

    Can you please tell how to design industry standard node js backend

  • @i-ush6349
    @i-ush6349 Жыл бұрын

    Thank you very much for this helpful video 👍

  • @kenaida22
    @kenaida223 жыл бұрын

    Is it possible to create an appointment booking app? To setup appointments with clients.

  • @jonanddy

    @jonanddy

    5 ай бұрын

    anything is possible

  • @shubhamtarkar38
    @shubhamtarkar383 жыл бұрын

    Noice port number

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Lmao I swear I didn't realize untill people started mentioning it

  • @shubhamtarkar38

    @shubhamtarkar38

    3 жыл бұрын

    @@PedroTechnologies lol

  • @sk2279

    @sk2279

    2 жыл бұрын

    Was gonna post the same

  • @manuelpineda924
    @manuelpineda9243 жыл бұрын

    Awesome Video Thank You! You should do one for React as well.

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Thank you! I have a full React Router Dom Tutorial: kzread.info/dash/bejne/rHWZ06qjeLS7j7g.html

  • @rolandraphael9087

    @rolandraphael9087

    3 жыл бұрын

    I know Im pretty randomly asking but do anyone know of a good website to watch newly released series online ?

  • @stanleydeclan4182

    @stanleydeclan4182

    3 жыл бұрын

    @Roland Raphael try FlixZone. Just google for it :)

  • @javiermajor9522

    @javiermajor9522

    3 жыл бұрын

    @Stanley Declan yup, I have been using Flixzone for since march myself :D

  • @rolandraphael9087

    @rolandraphael9087

    3 жыл бұрын

    @Stanley Declan thank you, signed up and it seems like they got a lot of movies there :) I really appreciate it !

  • @moussasangare5640
    @moussasangare56403 жыл бұрын

    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

    @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

    @moussasangare5640

    3 жыл бұрын

    @@PedroTechnologies Ok thanks sir

  • @ZeshanMukhtar1
    @ZeshanMukhtar1 Жыл бұрын

    Thanks, love from Pakistan 💖

  • @freddyfozzyfilms2688
    @freddyfozzyfilms26882 жыл бұрын

    nice port number

  • @octavioteixeira8304
    @octavioteixeira830410 ай бұрын

    Como é hábito, excelente produto! Parabéns!

  • @LearnCodingWithArshad
    @LearnCodingWithArshad7 ай бұрын

    Thanks a lot really helpful video but it would have been better to use nodemon with it.

  • @Pareshbpatel
    @Pareshbpatel2 жыл бұрын

    Excellent introduction on Express Routing. Thanks. {2022-06-10}

  • @Gwgitu77
    @Gwgitu775 ай бұрын

    Thank you

  • @maxx783
    @maxx7832 жыл бұрын

    THANK YOU!

  • @inspiredomkar1239
    @inspiredomkar123910 ай бұрын

    Great Video . Thanks...!

  • @ClashRoyale-pt9zj
    @ClashRoyale-pt9zj11 ай бұрын

    good video budy

  • @oktoniuszevanyasimanungkal9554
    @oktoniuszevanyasimanungkal9554 Жыл бұрын

    THANK YOU SO MUCH

  • @kenaida22
    @kenaida223 жыл бұрын

    This isn't working with Heroku server, any suggestions?

  • @adityaverma327
    @adityaverma3273 жыл бұрын

    Thnx, u r so helpful...

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Happy to help!

  • @iamakifislam
    @iamakifislam2 жыл бұрын

    Huge Thanks

  • @Sumedha-0707
    @Sumedha-0707 Жыл бұрын

    Thank You Very Much

  • @thangphan6047
    @thangphan60472 жыл бұрын

    Thank you so much.

  • @Shellflower1234
    @Shellflower12343 жыл бұрын

    AMAZING

  • @inhazfahim8270
    @inhazfahim82702 жыл бұрын

    Thank you so much!!

  • @emee__
    @emee__ Жыл бұрын

    Hello, any tutorial on subdomain routing in express?

  • @arirosen9764
    @arirosen9764 Жыл бұрын

    Thanks!

  • @michelgerges2678
    @michelgerges26783 жыл бұрын

    awesome video thank you

  • @JetProduction4579
    @JetProduction45793 жыл бұрын

    thank you sir, i appreciate

  • @ricky8466
    @ricky8466 Жыл бұрын

    thank you, GBU!

  • @oussamasadiki7377
    @oussamasadiki73773 жыл бұрын

    thanks lot bro well explained

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Glad you liked it

  • @visartistry
    @visartistry3 ай бұрын

    thank you

  • @imamamr
    @imamamr Жыл бұрын

    thanks a lot👍👍

  • @thesocialtalk1853
    @thesocialtalk1853 Жыл бұрын

    actually I've got the whole concept

  • @nightowl5804
    @nightowl58043 жыл бұрын

    Thanks a lot😀

  • @PedroTechnologies

    @PedroTechnologies

    3 жыл бұрын

    Ur welcome! I am happy to help!

  • @dhruvkumar-br2lp
    @dhruvkumar-br2lp8 ай бұрын

    Thanks