Take a bowl and add some salt. Then add the pasta and allow it to boil well for 10 minutes. Once its cooked drain the water and set the pasta aside.
Take a frying pan, add 2 tbsp of olive oil. Then add the finely chopped onions and garlic. Cook it for few minutes.
Once the onions and garlic are cooked, you can add the chopped tomatoes and cook it well
Add 1/2 tbsp of salt, 1/4 tbsp of pepper, some chilli flakes and mix it well.
Once its cooked well, you can add the pasta and mix it well. You can add some more pepper and salt based on your preference.
Then top your pasta with some basil leaves
You can also add some grated cheese as a topping, before serving your pasta.