How can I stop being such a miserable person?

I’m angry and sad all the time and I inadvertently take it out on the people I love. I don’t want to hurt anybody anymore and I want control over my mindset.

I want to be a better, more positive person for myself and the people around me. How can I do this?