ExpressJS Routes Tutorial - Separating Routes into Different Files

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 155

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

  • @yazeezy4425
    @yazeezy4425 Год назад +30

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

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

  • @pujanajmera7905
    @pujanajmera7905 2 месяца назад +1

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

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

  • @shaddumusaib
    @shaddumusaib 6 месяцев назад

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

  • @jerrerock
    @jerrerock 3 месяца назад

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

  • @hxauax
    @hxauax Год назад

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

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

  • @itsnobledean9450
    @itsnobledean9450 Год назад

    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.

  • @shubhamkamdi6606
    @shubhamkamdi6606 4 месяца назад

    Straight to the business \m/ love your work man

  • @jasonxb2998
    @jasonxb2998 2 года назад +1

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

  • @richard1991ish
    @richard1991ish 10 месяцев назад

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

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

  • @skl949
    @skl949 2 года назад

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

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

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

  • @Raj10185
    @Raj10185 10 месяцев назад +1

    Explain the concept beautifully thanks

  • @neilranada
    @neilranada 2 года назад +1

    This is an excellent explanation of express routes!

  • @abhinav788
    @abhinav788 Год назад +1

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

  • @mdnuruddinadnan8
    @mdnuruddinadnan8 Год назад

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

  • @AAfzal-lk2nf
    @AAfzal-lk2nf 7 месяцев назад

    Simple, on point and amazing tutorial👍🏻

  • @sandgar1001
    @sandgar1001 Год назад

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

  • @amrutjagtap5127
    @amrutjagtap5127 2 года назад

    U r way of explanation is awesome bro..

  • @PixelCowboy
    @PixelCowboy Год назад

    I love direct, simple and very understandable Explanation like this

  • @savannahshannon7868
    @savannahshannon7868 Год назад

    Very helpful, better than my professor!

  • @elfrompo6771
    @elfrompo6771 Год назад +1

    Fantastic tutorial. Subscribed!

  • @rhenanfreire9143
    @rhenanfreire9143 3 года назад

    Top stuff, thanks Pedrão!

  • @ThColinPereira
    @ThColinPereira 3 года назад

    This is a really nice video! Thanks, Pedro!

  • @mohammadmohabsarhan3961
    @mohammadmohabsarhan3961 7 месяцев назад

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

  • @Bob-bl1ey
    @Bob-bl1ey 3 месяца назад

    Best web devloper

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

  • @shawnmartin2302
    @shawnmartin2302 21 день назад

    9:40 saved my life thank you

  • @dollboy4113
    @dollboy4113 3 года назад

    ExOeactly what I was looking for, thanks a bunch!

  • @haritmakwana6296
    @haritmakwana6296 3 года назад

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

  • @praffsphr1136
    @praffsphr1136 3 года назад

    Very useful video, thanks Perdo!

  • @k303k
    @k303k Год назад

    Thanks a lot for this tutorial Pedro!

  • @sonofzion79
    @sonofzion79 Месяц назад

    You did great, man. Thank you.

  • @guillaumedurant7647
    @guillaumedurant7647 10 месяцев назад

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

  • @anangyoga1381
    @anangyoga1381 3 года назад

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

  • @sanjay2102
    @sanjay2102 11 месяцев назад

    Awesome information brotha 👏

  • @krishanthadharmasiri7725
    @krishanthadharmasiri7725 4 месяца назад

    Pedro my man, thanks so much

  • @richcaro3132
    @richcaro3132 3 года назад +1

    Wonderful explanation for routes . Thank you..

  • @rachealiperu9375
    @rachealiperu9375 6 месяцев назад

    nicely explained , very clear. thank you

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

  • @aasifali9139
    @aasifali9139 3 месяца назад

    thanks bro. This video was really helpful.

  • @Shiv-vb1re
    @Shiv-vb1re 3 года назад

    Thanks this is what i was looking for

  • @k.ashutoshbaitharu3964
    @k.ashutoshbaitharu3964 Год назад

    Best PORT number ever!

  • @Joe-ka
    @Joe-ka 3 года назад

    finally i understood it , thank you

  • @stanislavus
    @stanislavus Год назад

    Brilliant explanation😀

  • @Prajjwal191
    @Prajjwal191 2 месяца назад

    thank you pedro❤❤

  • @miguelfonseca186
    @miguelfonseca186 Год назад

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

  • @classicplayer2024
    @classicplayer2024 Год назад

    hats off to your PORT number bro .👍😂😂

  • @izarhalabi7354
    @izarhalabi7354 6 месяцев назад

    some point arnt really clear but it worked ,thanks

  • @lamarlewis7638
    @lamarlewis7638 Год назад

    Great work… this helped a lot!

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

  • @amitpotghan9569
    @amitpotghan9569 7 месяцев назад

    hey You explained very well,Thanks

  • @Pareshbpatel
    @Pareshbpatel 2 года назад

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

  • @oussemabouyahia474
    @oussemabouyahia474 Год назад

    thank you you streamlined well this subject

  • @kacperstepien8640
    @kacperstepien8640 Год назад

    You helped me a lot bro, thanks

  • @saumyakumarasinghe4531
    @saumyakumarasinghe4531 Год назад

    This was so helpful thank you so much

  • @luiscazares8678
    @luiscazares8678 Год назад

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

  • @arnoldasmatijosius5154
    @arnoldasmatijosius5154 2 года назад

    thanks, watched yours with interest.

  • @iCanfixit_
    @iCanfixit_ 13 дней назад

    thank you very much Pedro

  • @i-ush6349
    @i-ush6349 Год назад

    Thank you very much for this helpful video 👍

  • @asadullah7324
    @asadullah7324 2 года назад

    I was finding this. thanks.

  • @ZeshanMukhtar1
    @ZeshanMukhtar1 Год назад

    Thanks, love from Pakistan 💖

  • @Rin-dk1oo
    @Rin-dk1oo 2 года назад

    you saved my life

  • @user-um7tw6kx4r6
    @user-um7tw6kx4r6 Год назад

    This is really good thanks

  • @octavioteixeira8304
    @octavioteixeira8304 Год назад

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

  • @StockWithSayee
    @StockWithSayee 2 года назад

    Great video 😊

  • @LearnCodingWithArshad
    @LearnCodingWithArshad 11 месяцев назад

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

  • @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: ruclips.net/video/zAeqHjHQU_U/видео.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 !

  • @adityaverma327
    @adityaverma327 3 года назад +1

    Thnx, u r so helpful...

  • @CashHotel-xl2ih
    @CashHotel-xl2ih Год назад

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

  • @Shellflower1234
    @Shellflower1234 3 года назад +1

    AMAZING

  • @inspiredomkar1239
    @inspiredomkar1239 Год назад

    Great Video . Thanks...!

  • @inhazfahim8270
    @inhazfahim8270 2 года назад

    Thank you so much!!

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

  • @maxx783
    @maxx783 2 года назад

    THANK YOU!

  • @michelgerges2678
    @michelgerges2678 3 года назад

    awesome video thank you

  • @ClashRoyale-pt9zj
    @ClashRoyale-pt9zj Год назад

    good video budy

  • @JetProduction4579
    @JetProduction4579 3 года назад

    thank you sir, i appreciate

  • @oktoniuszevanyasimanungkal9554

    THANK YOU SO MUCH

  • @iamakifislam
    @iamakifislam 2 года назад

    Huge 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

  • @emee__
    @emee__ 2 года назад

    Hello, any tutorial on subdomain routing in express?

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

  • @oussamasadiki7377
    @oussamasadiki7377 3 года назад

    thanks lot bro well explained

  • @nightowl5804
    @nightowl5804 3 года назад +1

    Thanks a lot😀

  • @thangphan6047
    @thangphan6047 3 года назад

    Thank you so much.

  • @arirosen9764
    @arirosen9764 2 года назад

    Thanks!

  • @kishorkumarsingh9072
    @kishorkumarsingh9072 2 года назад

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

  • @ricky8466
    @ricky8466 Год назад

    thank you, GBU!

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

  • @freddyfozzyfilms2688
    @freddyfozzyfilms2688 2 года назад +1

    nice port number

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