I feel so bad I got angry in front of my baby

Let me just start off saying I know this isnt a question but I feel so bad I need to get it out. My baby is 3 weeks old and I stay home to take care of him, I havent had any help at all since my boyfriend had to work right away, its been hard with my csection and being home alone. He doesnt help me even when he gets home, hes in the garage all night working on his car or whatever, he doesnt sleep in our bed with me so Im up all night when baby cries. The second the baby starts crying he'll say 'why is he crying', as Im trying to make a bottle. Well today the baby was extra fussy and started to cry and he said 'what does he want,do you want me to do it' I got so mad I started yelling at him saying he doesnt help with anything why are you even asking me NOW, and he shut the door on me . So i got up and slammed the door open while i was holding my baby..i feel so bad that i yelled in front of him..i cant stop crying because he deserves better than that. Right now he started smiling and giggling in his sleep it broke my heart so much ,that I would lose my temper while holding him..