How to stay calm for baby?

I know stress isn't good for the baby, and I'm assuming extreme sadness isn't either. My boyfriend(now ex I guess) decided to move across country and dump me. I'm 5 months along, this is my first kid, I just started my first job ever, and I live with my parents. I'm scared and stressed and just borderline depressed over everything. What does everyone else do to stay calm for baby? I don't want my shitty life to affect baby before it can even begin its chance at life.