How to add a 'add to card' button to a repeater?

No code yet. When user clicks then it should add item to cart and then user will add quantity and then it will checkout.