Anyone have any tips on getting over ex boyfriends?

My ex broke up with me a month ago over snapchat, there had been no warning of it, he’d been fine the previous few days. I’d felt so close to him and I’ve had a lot of issues with people and at the time things weren’t too good. He dumped me at the worst possible time, I found that half my friends talked about me behind my back on a group chat and my grandad had passed away from cancer. This was the time that I needed him the most and he left me. I’m still heart broken? Any healthy tips on getting over him? Xx