Best thing you can do is continue with life. There won't ever be a clear divide between still hurting and then being over it, but eventually you'll start to think about it less. Even if it feels like the worst pain in your life, it only ever feels that way when you're presently feeling it - when you look back on that time after a few months, you'll likely see it differently. Nonetheless, you'll probably find that you've got more time to spend with family or friends or just on hobbies after ending a relationship.
It's even fine to feel some level of animosity towards that person (so long as you don't act on it irresponsibly) for a while. I've noticed that this tends to happen because the strength of the feelings don't necessarily fade initially, they just turn into a different emotion that you feel as strongly towards them. Bottom lines is, continue living your life.