DEV Community

Cover image for NestJS and Project Structure - What to Do?

NestJS and Project Structure - What to Do?

Scott Molinari on September 03, 2023

So, you're just getting going with Nest, ey? You might not yet completely understand why you want to use Nest or why it is one of the most popular ...
Collapse
 
tony133 profile image
Antonio Tripodi

A very interesting post, great!

Collapse
 
jmcdo29 profile image
Jay McDoniel

Great article breaking down how to use a domain forward approach with Nest's modules! Definitely gonna be sending this on to others who ask about it

Collapse
 
smolinari profile image
Scott Molinari • Edited

Thanks Jay! After answering the questions above a number of times, I figured I'd write this post to also point beginners to it, who are asking those same questions again. :)

Collapse
 
gazi786 profile image
Alshafaraz Gazi

Is it possible to use event-driven microservices on the same structure on the different modules. Newbie here just asking out of the blue

Thread Thread
 
smolinari profile image
Scott Molinari

For microservices, you'd be creating different applications, which can cover one or more modules or just services of modules. It really is up to you. The file structure would then be a bit more complex and you'd probably want to have a monorepo with a manager like Rush or Nx to manage the apps and libraries.

Scott

Collapse
 
emreaka profile image
Emre AKA

I love modular structure of Nest. Thanks for the article. That's awesome 💕

Collapse
 
muhammetozendev profile image
Muhammet Özen

You're the best Scott. Thanks for the great article

Collapse
 
keiwitha profile image
Kei

Thx. This article clarifies what I've wanted to say!

Collapse
 
esparen profile image
Ederson Sparenberger

Well written!
Packed with straight to the point useful information, with easy and fun to read language.
Congrats and thanks for this post.

Collapse
 
thejannim profile image
Thejan Nimsara

Thank you for the article! I'm glad you found the article valuable. Keep on learning and sharing knowledge!

Collapse
 
technologymoment profile image
TechnologyMoment

This article is the best article I ever read about NestJS backend developement!

Collapse
 
thenriquedb profile image
Thiago Henrique Domingues

Thanks, you save my life