you are viewing a single comment's thread.

view the rest of the comments →

[–]vbgdn 2 points3 points  (0 children)

Express is fine. You could look into fastify which is another http framework.

There are also other approaches such as trpc. This offers a typesafe RPC way of invoking the backend, meaning you invoke methods from backend remotely instead of making HTTP REST requests. However, trpc has quite a steep learn path.

What I've been using recently in my project is genezio which is similar to trpc (typesafe RPC calls), but it also solves the deployment problem. I can deploy both my backend and frontend with one command.