It will take a while probably

For the first few months just concentrate on something else, like nurture your friends and family relationships cause you'll probably feel quite lonely anyway!
And do lots of exercise! That always helps, it chemically makes you feel better and use the breakup as motivation.
Then when the worst over, analyse where you went wrong and try to improve yourself. Everything's a learning curve.