Pregnant and worried

So I just got a positive pregnancy test. I've wanted another baby so bad after having my daughter (she's 4 now) and after 2 miscarriages I have lost hope. My daughters father passed away last year and I've recently started just messing around with a friend..I knew I didn't want it to go any further than that. I've realized he's very controlling and he drinks a lot. He has 3 kids already and isn't on good terms with their moms..I had decided to stop messing with him almost 2 weeks ago but I guess it was already to late. Idk whether to be excited about this pregnancy or not. I know my family is going to be upset. It's been just me and my daughter for awhile..I'm not trying to get my hopes up with it because I've had 2 early miscarriages but if this one actually works out I'm not sure what my future looks like now..should I tell him now, or wait a few weeks? Should I make it a positive thing with a pregnancy announcement eventually and baby posts or should I be more upset about it...I'm not sure how to feel about the whole situation. I'm kind of excited but kind of disappointed in myself for letting it happen...