Factors to healthy pregnancy

Chatira
Back in early February I had a miscarriage. I'm 21 years old, weighing at about 175 pounds. What do I have to do to have a healthy pregnancy? What are the key factors? Me & my boyfriend want to try again but want to try to prevent another miscarriage