M
M
Max Kuznec2021-05-28 13:06:22
JavaScript
Max Kuznec, 2021-05-28 13:06:22

How to make a simple server to receive data from the database and then process this data?

Please help in solving the issue, there is such a task: in the app.js file, receive data from the local server, which is written in NodeJS in the server.js file. The server itself has the task of taking data from the database and placing it in a variable, is it possible in app.js to receive this data from the server? and how to implement all this? I read about various requests, but they are made on the server itself and are displayed immediately on the page, but I need to process them first in app.js. I hope I expressed myself correctly, thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EugeneMedvedev, 2021-05-28
@EugeneMedvedev

Maybe I misunderstood you, but what prevents you from operating with the data received after the request, and only then sending them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question