How to architect a NestJS application 🚀

preview_player
Показать описание
Sorry about the audio quality. I'll try to fix it in the next video.

If you liked the video, please share it and let me know if you have any suggestions!

💖💖💖
💖💖💖

#RoyalCodes #programming #nestjs
Рекомендации по теме
Комментарии
Автор

"Architecture" is a bit more than just organizing files and folders. And basing the folder structure for modules on technical aspects is actually a somewhat naive approach with several drawbacks in larger applications and when working on an app in a team - many experienced architects would challenge that.

carponneutrality
Автор

Hello, nice work. You should definitely a video to show how you handle the dto, I would be really interested in that.
Especially working with mongo where sometimes I have to declare two time the models (once for schemas purpose and the other time for dtos and stuff like that)

kgtrey
Автор

Isn't nest js suggest that we should use modular architecture?

patel
Автор

What happens when you add a Role module and your User has a relationship with Role? Your user has many roles and the User model has a reference to the Role model. How do you feel about importing code across feature modules? This is why I am not a fan of creating a Module for each business object because it can turn into a mess.

-_-unseen-_-
Автор

Hi! I'm kind of a newbie programmer, at least on this field, and I want to know... Are models the same that entities? Like you just arbitrarily chose to call your entities models since models and entities are interchangeable concepts? Or they are just different stuff?

danielvega
Автор

what should we do in case there is a service where we need more than 1 entity and external providers there?

brunoallison
Автор

So I've been using Nest CLI structure nest g resource command (the module ie. users or products directly under the src folder), in your opinion how was it compared to your src/module structure?

ValentinoNicko
Автор

I'd suggest not putting your test files under src. What I do is place them under the test directory, and mirror the src directory structure.

gosnooky
Автор

What if I have an order application with two entities: order, product. Would I have separate modules for order and product?

Or I guess a better example would be like:
I have regular users and then my application has projects which multiple users can have access to.

jenyaftw
Автор

Nice one! I feel the model should be in a common folder because there could be entities that would be different from module? Or what would you do in such cases?

rudeadyet
Автор

Your website is down. Can i get a link to article?

MrFamboYT
Автор

Hello Mohsen
I was watching the Docker and Laravel video, why did you delete it?

kiavashnoory
Автор

سلام . استاد پس چرا ویدیو های قبلی رو پاک کردین من داشتم طبق اونا جلو میرفتم

erfanansari
Автор

Can we structure nest js project similar to Spring Boot? I mean put all the controllers in controller folder, all services in services folder and all modals in modal folder. Define service interfaces to communicate between the Service and Controller.

patel
Автор

great video! do you have any plans to make an nestjs course?

RockyTonZ
Автор

please improve your micro phone quality

usamayousuf