Recognize the regularly updated DB data and refresh it on the web

Asked 1 years ago, Updated 1 years ago, 124 views

Hello, I am developing the web with node.js.

I'm using mariadb.

Suppose you have data from a Web client group as shown below.

A 10 20 50

B 30 30 50

C 85 92 33

If you have updated to 10->100 in A here,

The web client is aware of this update and wants to print it out by updating it to 100,000.

I wonder how to implement it for this part.

ps. Is this what's called a SPA? Reactjs, angularjs is like this...

mariadb node.js real-time

2022-09-22 08:28

1 Answers

If you are using node.js, use socket.io and

When updated in node.js, you can send information to the connected clas

The client keeps getting push from the server, so it can be done in real time

You don't have to use complex react or angular, just use socket.io client js and jquery.

If you search for socket.io example, there is a lot of information, so please refer to it


2022-09-22 08:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.