How to get over your first love ?

It was a three years relationship, he cheated he didn’t treat me right but still he was my first love and it hurts a lot.