How to be a mom?

I'm worried that since my mother was a terrible mom who made terrible decisions I won't know how to be a mom because I never had that. I'm scared to death. I never want my kids to feel how me and my sisters felt.