Node.js Project Structure and Architecture Best Practices

preview_player
Показать описание

======⚡⚡⚡======
Consider becoming a member of the channel ❤️

📚 Resources:

🕒 Timestamps:
(00:00) 3-Layer approach
(03:17) Folder structure
(04:14) Monorepos and libs
(04:57) Pub/Sub
(05:34) Tests
(06:16) Logging and monitoring
(06:55) Coding practices

And don't forget to subscribe for more videos like this 😊
Рекомендации по теме
Комментарии
Автор

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

gosnooky
Автор

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

rjwhite
Автор

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

aurobindobhuyan
Автор

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

yunyang
Автор

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

SayfSentinel
Автор

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.

nicolasmayorga
Автор

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.

stillmattwest
Автор

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.

code_react
Автор

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!

Jarjarniks
Автор

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.

isuckatthisgame
Автор

Excellent! Nice layout and simple to read code. Unusual on YouTube vids 🙂

alandmcleod
Автор

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.

madhavanand
Автор

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

aurobindobhuyan
Автор

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

BarakAlmog
Автор

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

prajwalmandlik
Автор

Very helpful vidoe of node developers.

codewithyaji
Автор

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.

bautistavicens
Автор

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

agony
Автор

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

niju
Автор

Hello, Do you still got the repo for this?

lnard