How did you manage a newborn at night and while your spouse worked the day?

How did you all do it? Taking care of a newborn at night and during the day? He doesn’t help at night so I’m up all night with her and during the day until he gets home around 4. How do you do it???