How to use Lube?

So I'm new to the whole sex thing. Me and my boyfriend recently did it for the first time together. It was my very first time ever. And we talked about it afterwards that we should have used lube. But I'm new to this so how exactly do you use lube?