Brakes/rotors - change them all?

My front brakes and rotors need to be replaced. I want to do it myself, as I’m trying to learn to do more maintenance on my own vehicle. Just wondering what you do/what the recommendation is in terms of doing just the front vs front + back?