Tips for getting over a breakup?

It wasn’t a super long relationship or anything but I had a love for him and it was kinda unexpected. I moved to a new state over the summer for school and all my classes are online because of covid so it’s been hard making friends. I’m still making an effort but not having the support is making it a lot harder to not text him than it would be. He was the only reason I left my apartment