Breakup??

My boyfriend just broke up with me. I was very emotionally attached to him. He was the first to touch me sexually and he took my virginity. He was my best friend, I told him everything. He broke up with me for a stupid reason. What should I do to get over it? I'm heartbroken..