I
I
Icantdothis2022-01-27 22:33:39
Node.js
Icantdothis, 2022-01-27 22:33:39

Which nodejs framework is preferable to use in 2022 for API development?

Which nodejs framework is preferable to use in 2022 for API development?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2022-01-27
@Icantdothis

For the past 9 months I have been writing on NestJS for money, and so far I can say that I have not found anything better for NodeJS at the moment.
Thanks to express under the hood, we can use a bunch of its cool libraries like Swagger UI and so on. For everything here, tests (templates) are automatically generated. You can adequately use decorators from typescript. And validation in a nest with its DTO is just a fairy tale.
With nest, you can finally write a real backend on a node.
Of course, Nest is not perfect. I have a lot of questions about this framework while using it, for example, about dependency injection in guards, inteceptors, etc. because of which it will not work to do JWT authentication normally using Nest modules for this (you can cheat usingNestFactory.createApplicationContext(), and I don’t want to use this pissed Passport.js; throwing exceptions instead of the normal way to send an error to the user, poor documentation. However, I am ready to suffer with all this, just not to switch to Express or any other node framework.
I even bought a book by Robert Martin about architecture - that's how much it inspired me!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question