DEV Community

Discussion on: What are the best practices for MEAN stack web development ?

Collapse
 
thespiciestdev profile image
James Allen

On the subject of replacing parts of MEAN, also replace Express with Nestjs (it wraps Express under-the-hood, but aligns with your Angular code!)

Collapse
 
rupeshiya profile image
Rupesh Krishna Jha • Edited

Thanks @james ,I will definately give it a try .

Collapse
 
sagarb3 profile image
Sagar Bhattacharya

I tried nestjs , but felt it restricts a user into learning nest and it's pattern, while express gives a user a freehand into understanding nodejs , nest is more like angular styled nodejs which seems very restrictive on the server side and I felt not much of an advantage

Thread Thread
 
thespiciestdev profile image
James Allen

While Nestjs is a framework and it does have its own approach to things, you can still interface directly with the underlying express instance.

I suggest exploring dependency injection on your server side, it was the 2nd reason I chose to start with Nestjs (1st again being it aligns so well with my Angular code!)