Pregnancy after miscarriage

I had a miscarriage in August 2018. It was my first pregnancy and it took a while for my period to go back to normal, however I’ve just done a pregnancy test because my boobs have been so sore for a while. It’s come back with a faint line and I’m so excited but so nervous to be pregnant again. Has anyone got any tips or advice on how to stay calm and also how to prevent a miscarriage? Hoping and praying this little miracle rainbow bean sticks! Thank you in advance!