M
M
Mikhail2020-06-13 16:54:01
Express.js
Mikhail, 2020-06-13 16:54:01

Why use Express, on Vuex with Sequelize?

I see everywhere that if the backing is on nodejs, then they do it according to the principle:
Database + orm on Sequelize
AND they access data models through internal server requests via Express like 127.0.0.1:3000/users and determine that, for example, send such a request to the users controller
AND in the users controller is already fetching from the database.
The question is, why raise Express and make tcp requests
If you can make a request from the client for vuex dispatch, for example, the users action and make a selection from the database in it ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-06-13
@Sergo94Min


If it’s possible to make a request from the client to vuex dispatch, for example, the users action and make a selection from the database in it ...

In this case, the client will have access to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question