If you're set on purchasing, the biggest trick is to AVOID PMI (mortgage insurance).
IMHO, paying PMI payments - especially for someone who sets up regular on-line payments - is a complete waste of money.
To avoid PMI, you have to put down at least a 20% down payment. If you're financially in a place to do that, then go for it.
As a general rule, I think of my home mortgage (@3.75%) as a 'bond' that pays back the inflation rate + 3.75% interest over time.
Food for thought: You might also read the threads regarding questions of "Invest or Pre-pay mortgage principal", and the answer is up to the individual. Many want to have no mortgage once they enter FI, and so plan their pre-payment of principal so they're paid off by their FIRE date. Others argue not to put more money in your mortgage than you must because houses are non-liquid, whereas stock market investments are. In any case, all the best, and good luck.