sorry but i just started learning about backend web development therefore this question might sound stupid.
right now, my backend only runs when the GET request or POST request is triggered because the logics are in there.
But how do i get my number counter to +1 continuously every 5 seconds in the background?
Since it only gets triggered when i visit my localhost website (app.get)(GET request),
i want it to continuously run to infinity.
is it possible?
My end goal here is to have this so called number counter run continuously at the same rate (assuming i didn't shut the server down), so that when i came back to my page an hour later, the counter should still be running and had already running for 1 hour even though the GET request was triggered only once.
Thanks!