Voting functionality like in YouTube

magine that you've created simple weblog by scaffolding and you want
to add 'Vote Up' and 'Vote Down' (or 'like' 'dislike') functionality
just like in YouTube, what steps are required, or someone have done it
before or anyone could give me helpful links to some posts where is
described how-to? Thanks!