Node.js Project Structure and Architecture Best Practices

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

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

  • @rjwhite4424
    @rjwhite4424 7 หลายเดือนก่อน +4

    Video was super helpful! I'd love to see a tutorial where you make a simple api from start to finish showing how to correctly use the 3-layer approach

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

      Thanks! I’ll try to follow that pattern in future videos 😉

  • @gosnooky
    @gosnooky 7 หลายเดือนก่อน +12

    NestJS provides a seamless implementation of the 3-layer architecture. I recommend using it for anyone not wanting to re-invent the wheel.

  • @aurobindobhuyan2107
    @aurobindobhuyan2107 4 หลายเดือนก่อน +1

    For Logging and Debugging, I use Morgan and Winston. The best part is you can combine it together to have the best o/p.

  • @SayfSentinel
    @SayfSentinel ปีที่แล้ว +5

    i use almost an identical approach, it would be great to have this folder structure and a bit of code to understand the logic behind it in a github repo!
    very nice analyze, you got a subscriber with a ringbell activated :)

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

      I couldn’t really go into code due to time constraints but thank you for the feedback 😉 And happy to have you here!

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

      Can you attach the github repo?

  • @yunyang6267
    @yunyang6267 ปีที่แล้ว +10

    Could you show us how to properly deploy a microservices architecture like this with several services and monitoring service to AWS or some other cloud proviiders? I think it'd be a great video

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

    Amazing explanation, I'm here trying to learn more about architectures in backend due to I'm a Frontend trying to understand more about backend logic.

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

    Excellent! Nice layout and simple to read code. Unusual on TH-cam vids 🙂

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

    For this reason i really love to use Nestjs. Which is using 3 layer approach. And also you can have modules for each different tasks.

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

    I typically implement a DAL (Data Access Layer) to mediate between a service and a database in my architecture. Within the model layer, I maintain class definitions that represent database entities, which I refer to as entity models. My approach can be seen as a sort of 3.5-layer architecture, as the model layer doesn't have direct communication with the database. 🙂 Anyhow, thanks for explanation.

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

    Great video. Thanks so much! Second or third time that I'm watching it. Appreciate it!

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

    Would have loved to be able to see this repository and investigate the routes, services, controllers etc in more detail. Thank you for the great video nonetheless!

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

    Make a video upon how to do testing, unit testing etc. And also best practice to implement logs.
    Superbbbb content dude. I was looking for this from sooo long.
    Up for any support if needed.

  • @srikantagrawal6118
    @srikantagrawal6118 3 ชั่วโมงที่ผ่านมา

    Hey! Thanks for the video😍. Can you please share the folder?

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

    Glad I'm following the same folder structure. 3layer structure 😅😅

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

    This video should really be a playlist. It would be great if you slowed down and gave some specific examples for each of the major points. It seems like your target audience is new Node developers, but you move way too fast for them to keep up with you.

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

    That was informative for sure

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

    Thank you for sharing!!

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

    Very helpful vidoe of node developers.

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

    Please do a video on monorepos!

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

    really good content

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

    Can you share microservices/serverless/SOA/monolith folder structure

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

    it would be great to complete this with `Analytics`, `Continuous Integration (CI)` and `Deployments (staging/production)`

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

    Thank u ❤

  • @prajwalmandlik3517
    @prajwalmandlik3517 3 หลายเดือนก่อน +1

    If anyone has a good source for learning this, please share it in the comments.

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

    Could you apply Design Patterns, like Strategy, in node projects like the one in the video, with router, controllers and services? I´ve seen it and applied it in Java projects, but with POO paradigm. So, i´m in doubt if it is a good practice or not, to use it in node projects with this kind of paradigm.

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

    Did you mean that the best structure is a nest?
    I agree :)

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

    good explaine next content please Go-lang :)

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

    Love your videos man. What tool do you use to make these boards

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

    can u share the codebase link in the description?

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

    I have class based routers and controllers and models are seperate...I generated them using sequelize cli

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

    Hello, Do you still got the repo for this?

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

    FYI...sounds like you might have some kind of automated video or audio editing, seems to cut off some words in parts of your videos

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

      Exactly, it’s a feature in Filmora that removes silent parts of the video :)

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

      @@SoftwareDeveloperDiaries Sounds like it needs tweaking because its removing parts of words, possibly a gate setting.

  • @shreshthverma1535
    @shreshthverma1535 8 หลายเดือนก่อน +1

    can you share the repo of this project

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

      Unfortunately there's no code for this one :/

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

      any example repo??@@SoftwareDeveloperDiaries

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

    We want to read your code 😊

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

    I wish you could share the code for your videos

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

    is it possible to get this project source code?

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

    good video. sorry for changing 666 thumbs up to +1 )) but I can't just pass by

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

    huseyin baskan r harflarini cok vurgulu soyluyorsun dinlemek yorucu oluyor. haberin olsun. basarilarinin devamini dilerim

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

    😒 'promosm'