M
M
Mikhail Vlasov2019-11-15 17:01:48
User identification
Mikhail Vlasov, 2019-11-15 17:01:48

How adequate is it to work with DB from nuxt server?

There is an application on Nuxt.js in which you need to add registration / authentication, while the user will have a shopping cart, which should also be stored in the database along with users. The fact is that I have not yet decided how to do it normally - raise a separate server with its own apish to work with users and do all the work with the database there, or connect an additional serverMiddleware to the naxt and do it in it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WinPooh32, 2019-11-15
@WinPooh32

If you are satisfied with server performance on Nodejs, then do it like serverMiddleware. In this case, your project infrastructure will be easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question