Boil the spaghetti noodles in boiling water.
Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add chopped tomatoes and salt, and simmer.
Mix the cooked noodles with the sauce and stir-fry together.
Serve in a bowl and top with basil.