How can I cope with jealousy toward my close friend?

I'm very insecure and seeing her being better than me in almost everything is torturing me. I don't treat her badly because I know my insecurity is not her fault. It's so frustrating and being around her makes me even more aware of the fact I hate myself and I'm not good enough. Also, the guy that I had a crush on for 3 years started to like her recently and she didn't even ask me if I was okay (yet nothing happened between them she said that if he takes initiative she will hook up with him).

She is so fun and I don't wanna stop being friends with her but I'm starting to think it's the only option. What should I do?

How can I cope with jealousy toward my close friend?
Post Opinion