P
P
Pasha2020-12-15 16:14:46
Node.js
Pasha, 2020-12-15 16:14:46

Which node.js framework to choose for a small project?

Hello colleagues,
for an average web and PWA project, you need a backend. I'm a front end developer and sometimes I do something in the back end, but I left the back end (django / flask) 5 years ago, so I decided to make a project on nodejs (starting from scratch anyway).

The main logic will be implemented in React + sometimes swelte on the client. BE is needed to store and present data (and images) of users and search with filtering by user database.

If the framework does not know how to do something, but it is easily implemented using reliable third-party libraries, then this is also suitable.

Framework Requirements

  • simple implementation of authentication and what is connected with it - registration, resetting passwords, authentication through social networks
  • security of user data, and it is also necessary that the framework does not let itself be shot in the foot or has a detailed security guide
  • web socket for simple chat
  • Push Notifications
  • no problems with typescript


Wishes
  • ORM
  • GDPR tools in +
  • so that there are no special difficulties with PWA
  • React support


I will be glad to receive recommendations of frameworks,
thank you all in advance :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuriy Vorobyov, 2020-12-15
@ShadowIdentity

Use Express.js, it's the easiest framework to learn and there are tons of libraries written for it:

  1. authorization - Passport.js
  2. working with files - multer
  3. ORM - sequelize
  4. sockets - socket.io
  5. typescript setting - here article
  6. security - helmet

Plus, the framework has a generator that will help you quickly raise the application without any problems.

P
peterpro, 2020-12-24
@peterpro

If the application has more than one endpoint per table in the database, and it lives for more than a quarter, you need to take a normal corporate framework with a normal ORM, in your stack it is Nest + TypeORM.
PS: I don’t understand people at all who in 2020 write something in bare express / fastify (or call these libs - frameworks). It seems that after the start of the next project, they have a sign "congratulations, you saved 15 minutes on deployment, you are amazing!"

T
Timofey Dergachev, 2020-12-24
@exeto

To work with the database, see https://www.prisma.io/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question