Boil the beans in boiling water until tender, about 10 minutes.
While the beans are boiling, in a medium/large frying pan add the oil, the bacon (pancetta), chopped shallot and garlic, cook until golden (3-5 minutes) on medium/high heat, stirring often (so it doesn't burn) until almost crispy or crispy if you prefer.
Then add the cooked drained beans, sprinkle with salt and pepper, toss and cook for about one minute. Serve immediately.