So basically I am working on a react project with firebase as back-end and authentication. This project is a prediction platform where user registers and predicts whether gold price will go up or down.
So when a user click on prediction (for example- price will go up by $5) and exits the site, I have the api to compare current price with predicted price but how can I compare it without user using the website (on the server) and store it to database.
Thanks in advance and apologies if I haven't expressed it clearly.