Clean architecture with nodeJs express : practical example in node.js

preview_player
Показать описание
How to build Nodejs Microservice with Kafka. It's an advanced course on Microservice development using Nodejs and Kafka. Where we will learn everything about the communication between services and Elastic search integration using typescript.

Diagram:

Clean Architecture Episode Repository:

Repository:

Discord Channel:

What are the key concepts you can learn from this course?
- Software Development Estimation process
- Clean Architecture
- Elastic Search integration
- Prisma implementation as ORM
- How to cover test cases

#nodejsdevelopment #express #javascriptframework #backenddeveloper
Рекомендации по теме
Комментарии
Автор

I’ve been poking around YouTube and the inter webs for node/typescript specific examples of clean architecture and I gotta say I think your video is the *best* at showing the principles through a legit project, with code!! I do like how you simplified the tutorial, eliminating non essentials like an orm and messaging libs. Calling “use cases” by the name “interactors” is something I have not heard before. The only thing that I felt was truly missing was the interaction with the domain layer… you did create a domain object but then ignored it for the rest of the tutorial. Since it was such a small/simple project maybe it didn’t warrant calling any domain methods though, but would have been nice to mention that.

Amazing video. Subscribing now.

ShaunEk
Автор

Hi sir.. if you don't mind.. could you please make one large application or creating apid for it by this way.. including authentication dto, types and type orm with mogodb testing?❤😊🎉

viralmoney
Автор

HI Jay. Are you still going to be creating the frontend for the microservices masterclass series? would be great to see even a basic design on the frontend to see how it all goes together

Riflijones
Автор

Will there be any videos releated to Hexagonal architecture and Onion architecture because i have some doubts releated to them. Are they same except their name.

mohit
Автор

database is not working. i created clean_architecture database and defined table but cant create or find ?

sharaths
Автор

I was waiting for this after watching first part. Good to see some unique advance stuff on YouTube. Good work brother ✨

shravan
Автор

Hi Jay, first of all thank you so much for share this proffessional knowledge, your channel is amazing. Sincerely the best and precise course of node that I ever had.

I have a question my friend, in what layer should the repository be? I see that the product repository uses the external library "pg" and also it comunicates with Product entity. I am a little confuse about this, can you explain me? please.

devPloy
Автор

How are you my friend? Happy new year in advance, I will watch this after my holiday, i know it's a goody as usual

abayomioloyinde
Автор

clean architecture is all great but why the need of dependency injection. I have never used so confused why used here ?

sharaths
Автор

I like the way you explained Clean architecture well but if I may ask, aren't just adding more abstractions and spreading code across multiple folders/files?

bollo_omar
Автор

Also make another video by following functional based not classed based and used orm prisma

technoinfoworldwide
Автор

Jay, what is your opinion about nestjs

pranav
Автор

For those many files needed for just one entity you need to introduce a generator :)

vyteniskuciauskas
Автор

Don't you think every Entity having it's own folder is then they have their own files inside their folder.... controller, service, repository, interface e.t.c

NathanielBabalola
Автор

as I new learner, i learned clean architecture in c#. Actually did not create many projects with c# but i understood the clean architecture thanks to the teacher. I recently started learning node.js and was about to create my own project after tutorials. The think that stopped me was actually clean architecture. As I learned it from the c# courses I felt that somethings were going wrong in the node.js tutorials, then i searched clean architecture in node.js and found your video. It is very helpful and understandable as a beginner/low-intermediate. Thank you very much!

kemalsogut
Автор

I'm trying to implement this architecture to one of my projects but using nodejs without the typescript thing, and the dependency injection thing of having a instace of the interactor seems not necessary, If I want to test with a mock I can override the static class instance of the methods in the interactor itself.

erickweil
Автор

If I want to add any middleware for example I have jwt and the request needs the token, where can I add the middle ware for each requesg and how ??

eRcK
Автор

If you are going to implement this on Nodejs why not use Nestjs instead?

chess
Автор

Great work Jay! What should be the industry practice using orm models like sequelize, prisma erc. or raw queries as per tutorial? And what are your thoughts about using nestjs which has already using singleton or repository pattern

kranthikumarvitta
Автор

Hi,
Thank you for this tutorial.
How we can avoid dependency injection?
Example:

AService.ts
const AA = () => {
BService.BB();
}
const CC = () => {
// some code
}

BService.ts
const BB = () => {
AService.CC();
}

Note: we don't want use methods together
Only services import to together

hfmohammad