You gotta do two different set of works,
1. Add Push notifications in our rails application, thr rails app is kind of a social app where user posts like amd comment amd other get notified.
2. Add a ranking system based on the total number of like, the user who have got the highest total number of likes till date will rand first the user less then that will be sevond and so on... ranking of all the users will be seen on a new page and there individual ranking will be shown in the profile page.
I am a Ruby on Rails developer in a outsource company in US market. I have 2 years develop Ruby on Rails with React JS.
1. With your problems, we can use Action Cable in Rails 5 above to handle easily. Every post is liked or commented, we will fire an action through Action Cable that send notification to the user.
2. The data we will save to database, so we can count, process whatever we want.
Hope can work with you.