In addition to danielleantosz's answer, you can also take a glass jar or beer bottle, put a small piece of banana or a 1/4 inch of fruit juice in it, create a paper funnel with a tiny hole, put the funnel in the jar and tape the funnel to the jar.
Fruit flies love bananas or anything sweet and/or yeast like. We use these jars+funnels traps in our fruit flies research labs to collect our research "escapees" - the university that I work at houses over 40,000 strains for fruit flies for research studies!
Once trap become full, just stick it in your freezer and that will kill all the flies off.
Good luck and that homemade bread sound great!