I agree with Ainsleigh: get time to yourself to reflect; write in a journal; read. For me, what helped was surrounding myself with great friends and positive influences, and giving time back to my hobby, which I let slip a bit while in the relationship. So, get busy with your favorite activities..and perhaps find fun events to attend in your community; take some enrichment classes. It's all good!
As time passes, you realize why the relationship had to end...in order for a new door to open and an even better relationship to begin. It's still possible to remain friends with an ex, but it is better to get some distance first, to get over the emotional attachment. I'm still friends with many of my exes, but I did take time away from them first. You probably should too.
Wishing you all the best,