Feeling really down

My boyfriend of 3 years and I just broke up the other day. I have been doing better than I ever thought I would. But nights are the hardest. It's hard not to think about him until I fall asleep and it's hard when I wake up and remember everything. I don't want to cry anymore I want to just forget and feel better and move on but at night I miss talking to him so badly I feel like I physically hurt. I believe that everything happens for a reason and that I deserve better than some of the things he did. I just miss him so much. And I can't text him or anything because it will make it worse. Just need some encouragement I guess. I need to smile.