Discussion on: Any Questions About NestJS? Let's discuss them here:-)

thejscode profile image
Jaskirat Grewal Author

Hi @coolman1011
Answer to your First Question: Yes it is definitely worth it. Like you, I also preferred express and used it on a large scale project. Later on, things got built upon another thing and in the end, no matter how good I did the abstraction, there was chaos. I then shifted to NEST and it gave me a perfect MVC architecture.

Now to design a good module you should make sure that every module contains either a controller or a service and not both. For example if you are using a mysql db then you should create a DBModule containing DBService and then later call it in the modules containing the controllers using providers property.
Follow the DRY and SOLID principles and make the best out of the architecture.