You should speak with a mortgage professional regarding what you would qualify for (and when). It often takes 7-years or longer to have the bankrupcy erased from your credit report, however you should make every effort to improve your credit score before attempting to purchase a home. Most conventional loans require a 700+ credit score, FHA 650+ to qualify. Keeping your debt to income ratio is also very important...
In general you will need 3 1.2% minimum downpayment for FHA and 5% for conventional
Hope this answers your questions.
Best of luck,
David Jaffe-SRES, CDPE