Peel and dice the onion. Fry bacon in a pan without fat until crispy. Remove from the pan and place on kitchen paper. Fry onion in hot bacon fat for about 2 minutes.
Add beans, heat and season with salt and pepper. In the meantime heat 1 tablespoon of oil in a pan. Beat the eggs, let them slide into the hot oil and fry them for about 5 minutes. Season with a little salt