Boil the spaghetti noodles in boiling water.
Finely chop the onion and garlic.
Cut the bacon into bite-sized pieces.
Add olive oil to a pan and sauté the garlic and onion.
Add the bacon and cook together.
Add the cooked noodles to the pan and mix with the ingredients.
Season with salt and pepper to taste.
Serve on a plate and sprinkle with parsley or cheese.