ExpressJS Routes Tutorial - Separating Routes into Different Files

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 155

  • @yazeezy4425
    @yazeezy4425 ปีที่แล้ว +30

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

  • @jtaylor8606
    @jtaylor8606 ปีที่แล้ว +16

    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
    @chyejoo 3 ปีที่แล้ว +15

    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
    @shibinraja 3 ปีที่แล้ว +15

    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!

  • @rlmgtr
    @rlmgtr หลายเดือนก่อน

    Thank you so much, brother. I'm stuck with this topic for 2 days. I got it within just 20 mins with your tutorial. May God Bless you.

  • @jerrerock
    @jerrerock 2 หลายเดือนก่อน

    thank you! it feels so good to becoming closer to a full stack developer.

  • @YOUTUBE_IS_WOKE
    @YOUTUBE_IS_WOKE 2 ปีที่แล้ว +1

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

  • @hxauax
    @hxauax ปีที่แล้ว

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

  • @shaddumusaib
    @shaddumusaib 6 หลายเดือนก่อน

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

  • @GeorgesMayrink
    @GeorgesMayrink 2 ปีที่แล้ว +6

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

  • @pujanajmera7905
    @pujanajmera7905 2 หลายเดือนก่อน +1

    This was the only video i saw and boom got it directly in my mind 😊

  • @itsnobledean9450
    @itsnobledean9450 11 หลายเดือนก่อน

    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.

  • @jasonxb2998
    @jasonxb2998 2 ปีที่แล้ว +1

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

  • @Raj10185
    @Raj10185 10 หลายเดือนก่อน +1

    Explain the concept beautifully thanks

  • @f3-faithfitnessfinance
    @f3-faithfitnessfinance 3 ปีที่แล้ว +1

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

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

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

  • @richard1991ish
    @richard1991ish 10 หลายเดือนก่อน

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

  • @christmascatalogue
    @christmascatalogue 2 ปีที่แล้ว +1

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

  • @ilhamadiputra4745
    @ilhamadiputra4745 3 ปีที่แล้ว +2

    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!

  • @shubhamkamdi6606
    @shubhamkamdi6606 4 หลายเดือนก่อน

    Straight to the business \m/ love your work man

  • @skl949
    @skl949 2 ปีที่แล้ว

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

  • @shawnmartin2302
    @shawnmartin2302 19 วันที่ผ่านมา

    9:40 saved my life thank you

  • @amrutjagtap5127
    @amrutjagtap5127 2 ปีที่แล้ว

    U r way of explanation is awesome bro..

  • @sandgar1001
    @sandgar1001 ปีที่แล้ว

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

  • @neilranada
    @neilranada 2 ปีที่แล้ว +1

    This is an excellent explanation of express routes!

  • @Bob-bl1ey
    @Bob-bl1ey 3 หลายเดือนก่อน

    Best web devloper

  • @mdnuruddinadnan8
    @mdnuruddinadnan8 ปีที่แล้ว

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

  • @PixelCowboy
    @PixelCowboy ปีที่แล้ว

    I love direct, simple and very understandable Explanation like this

  • @abhinav788
    @abhinav788 ปีที่แล้ว +1

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

  • @AAfzal-lk2nf
    @AAfzal-lk2nf 7 หลายเดือนก่อน

    Simple, on point and amazing tutorial👍🏻

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

  • @guillaumedurant7647
    @guillaumedurant7647 10 หลายเดือนก่อน

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

  • @haritmakwana6296
    @haritmakwana6296 3 ปีที่แล้ว

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

  • @mohammadmohabsarhan3961
    @mohammadmohabsarhan3961 7 หลายเดือนก่อน

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

  • @anangyoga1381
    @anangyoga1381 3 ปีที่แล้ว

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

  • @elfrompo6771
    @elfrompo6771 ปีที่แล้ว +1

    Fantastic tutorial. Subscribed!

  • @TheCodingOdyssey
    @TheCodingOdyssey 3 ปีที่แล้ว +1

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

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

      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!

  • @savannahshannon7868
    @savannahshannon7868 ปีที่แล้ว

    Very helpful, better than my professor!

  • @sonofzion79
    @sonofzion79 หลายเดือนก่อน

    You did great, man. Thank you.

  • @ThColinPereira
    @ThColinPereira 3 ปีที่แล้ว

    This is a really nice video! Thanks, Pedro!

  • @richcaro3132
    @richcaro3132 3 ปีที่แล้ว +1

    Wonderful explanation for routes . Thank you..

  • @sanjay2102
    @sanjay2102 11 หลายเดือนก่อน

    Awesome information brotha 👏

  • @rachealiperu9375
    @rachealiperu9375 6 หลายเดือนก่อน

    nicely explained , very clear. thank you

  • @rhenanfreire9143
    @rhenanfreire9143 3 ปีที่แล้ว

    Top stuff, thanks Pedrão!

  • @dollboy4113
    @dollboy4113 3 ปีที่แล้ว

    ExOeactly what I was looking for, thanks a bunch!

  • @k303k
    @k303k ปีที่แล้ว

    Thanks a lot for this tutorial Pedro!

  • @aasifali9139
    @aasifali9139 3 หลายเดือนก่อน

    thanks bro. This video was really helpful.

  • @miguelfonseca186
    @miguelfonseca186 ปีที่แล้ว

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

  • @praffsphr1136
    @praffsphr1136 3 ปีที่แล้ว

    Very useful video, thanks Perdo!

  • @krishanthadharmasiri7725
    @krishanthadharmasiri7725 4 หลายเดือนก่อน

    Pedro my man, thanks so much

  • @stanislavus
    @stanislavus ปีที่แล้ว

    Brilliant explanation😀

  • @luiscazares8678
    @luiscazares8678 ปีที่แล้ว

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

  • @murtazasaleem2435
    @murtazasaleem2435 2 หลายเดือนก่อน

    We can also create
    User controller and Comment controllers in seprate files like
    Controller / user controller.js
    Controller / comment controller.js
    And we write res.send logic here
    It make it more production level code

  • @k.ashutoshbaitharu3964
    @k.ashutoshbaitharu3964 ปีที่แล้ว

    Best PORT number ever!

  • @izarhalabi7354
    @izarhalabi7354 6 หลายเดือนก่อน

    some point arnt really clear but it worked ,thanks

  • @amitpotghan9569
    @amitpotghan9569 7 หลายเดือนก่อน

    hey You explained very well,Thanks

  • @Shiv-vb1re
    @Shiv-vb1re 3 ปีที่แล้ว

    Thanks this is what i was looking for

  • @Prajjwal191
    @Prajjwal191 2 หลายเดือนก่อน

    thank you pedro❤❤

  • @oussemabouyahia474
    @oussemabouyahia474 ปีที่แล้ว

    thank you you streamlined well this subject

  • @manux_gameplay
    @manux_gameplay 3 ปีที่แล้ว +1

    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: th-cam.com/video/zAeqHjHQU_U/w-d-xo.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 !

  • @Pareshbpatel
    @Pareshbpatel 2 ปีที่แล้ว

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

  • @ZeshanMukhtar1
    @ZeshanMukhtar1 ปีที่แล้ว

    Thanks, love from Pakistan 💖

  • @i-ush6349
    @i-ush6349 ปีที่แล้ว

    Thank you very much for this helpful video 👍

  • @sayhussain007
    @sayhussain007 2 ปีที่แล้ว

    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

  • @kacperstepien8640
    @kacperstepien8640 ปีที่แล้ว

    You helped me a lot bro, thanks

  • @saumyakumarasinghe4531
    @saumyakumarasinghe4531 ปีที่แล้ว

    This was so helpful thank you so much

  • @lamarlewis7638
    @lamarlewis7638 ปีที่แล้ว

    Great work… this helped a lot!

  • @Joe-ka
    @Joe-ka 3 ปีที่แล้ว

    finally i understood it , thank you

  • @octavioteixeira8304
    @octavioteixeira8304 ปีที่แล้ว

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

  • @iCanfixit_
    @iCanfixit_ 12 วันที่ผ่านมา

    thank you very much Pedro

  • @classicplayer2024
    @classicplayer2024 ปีที่แล้ว

    hats off to your PORT number bro .👍😂😂

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

  • @arnoldasmatijosius5154
    @arnoldasmatijosius5154 2 ปีที่แล้ว

    thanks, watched yours with interest.

  • @LearnCodingWithArshad
    @LearnCodingWithArshad 10 หลายเดือนก่อน

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

  • @Rin-dk1oo
    @Rin-dk1oo 2 ปีที่แล้ว

    you saved my life

  • @CashHotel-xl2ih
    @CashHotel-xl2ih ปีที่แล้ว

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

  • @asadullah7324
    @asadullah7324 2 ปีที่แล้ว

    I was finding this. thanks.

  • @emee__
    @emee__ 2 ปีที่แล้ว

    Hello, any tutorial on subdomain routing in express?

  • @StockWithSayee
    @StockWithSayee 2 ปีที่แล้ว

    Great video 😊

  • @user-um7tw6kx4r6
    @user-um7tw6kx4r6 ปีที่แล้ว

    This is really good thanks

  • @shubhamtarkar38
    @shubhamtarkar38 3 ปีที่แล้ว +2

    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

  • @adityaverma327
    @adityaverma327 3 ปีที่แล้ว +1

    Thnx, u r so helpful...

  • @kishorkumarsingh9072
    @kishorkumarsingh9072 2 ปีที่แล้ว

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

  • @kenaida22
    @kenaida22 3 ปีที่แล้ว +1

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

    • @jonanddy
      @jonanddy 8 หลายเดือนก่อน

      anything is possible

  • @moussasangare5640
    @moussasangare5640 3 ปีที่แล้ว +1

    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

  • @eduket7731
    @eduket7731 3 ปีที่แล้ว +1

    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!

  • @kenaida22
    @kenaida22 3 ปีที่แล้ว

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

  • @ClashRoyale-pt9zj
    @ClashRoyale-pt9zj ปีที่แล้ว

    good video budy

  • @Shellflower1234
    @Shellflower1234 3 ปีที่แล้ว +1

    AMAZING

  • @inspiredomkar1239
    @inspiredomkar1239 ปีที่แล้ว

    Great Video . Thanks...!

  • @oussamasadiki7377
    @oussamasadiki7377 3 ปีที่แล้ว

    thanks lot bro well explained

  • @michelgerges2678
    @michelgerges2678 3 ปีที่แล้ว

    awesome video thank you

  • @maxx783
    @maxx783 2 ปีที่แล้ว

    THANK YOU!

  • @inhazfahim8270
    @inhazfahim8270 2 ปีที่แล้ว

    Thank you so much!!

  • @JetProduction4579
    @JetProduction4579 3 ปีที่แล้ว

    thank you sir, i appreciate

  • @oktoniuszevanyasimanungkal9554
    @oktoniuszevanyasimanungkal9554 ปีที่แล้ว

    THANK YOU SO MUCH

  • @nightowl5804
    @nightowl5804 3 ปีที่แล้ว +1

    Thanks a lot😀

  • @thangphan6047
    @thangphan6047 3 ปีที่แล้ว

    Thank you so much.

  • @freddyfozzyfilms2688
    @freddyfozzyfilms2688 2 ปีที่แล้ว +1

    nice port number

  • @iamakifislam
    @iamakifislam 2 ปีที่แล้ว

    Huge Thanks

  • @arirosen9764
    @arirosen9764 2 ปีที่แล้ว

    Thanks!