I think your first sentence says it all.
"I'm only 24."
You have a lot of life in front of you, a lot of living to do. Make the best of it. This will pass, either he'll come back or you'll meet someone else.
Always take care of yourself. And don't ever settle for second best.
We're all here for you.