How do you let go of the past?

It's been a year since my heart got broken by cheating and I don't know how to be okay again.. The pain is still there and it hurts a lot. I'm so scared to get hurt again by anyone else....