Recommandation engine with Ionic

Hi Ionites! :slight_smile:

I’m building an app where users can vote for videos, photos… And I have an algorithm that compute the points of the content with mainly how much likes there is and other factors too.
I can put that part of the code on the user side but the issue is, if I made adjustements on the formula and some user don’t make the update of the app, that will not work…
So can I put this part of the code on the cloud so it will be the same for every users? If so, how with firebase?

To make it simple, how something like the algorithm used by 500px, mashable or even Reddit to calculate the interest of users can work in an app made with Ionic? Where to put that part of the code?

Thank you a lot ! :slight_smile: