How can I get over a breakup?

I met her when I we were 15, and we're 21 now. We dated most of that time, albeit long-distance over emails online, breaking up twice. The first time I saw it coming, and I distanced myself before she broke up with me. It didn't hurt too much. We didn't talk for a while, then became friends again and got really close. She confessed, despite my obvious friend zoning. Because I was scared to lose her, we started dating again. I fell in love with her and worked three jobs for a year so I could move to her town. The second time we broke up was a little over a year after I had moved.. I saw it coming and fought to make it work. Unfortunately, our ideas of commitment differed. I was insecure. She was selfish. We were both really stressed over our own lives. That one hurt worse than anything else I've experienced. It's been almost a month now. She was my closest friend for almost 7 years, and now.. I wish we never started dating again. I loved her as a friend and I hate we became anything more than that because now I don't have her at all.
How can I get over a breakup?
Post Opinion