Boil a litre of water in a saucepan. Add salt and pasta.
Cook till pasta is done 80%. Do not overboil it.
Reserve ½ a cup of pasta water to use later. The starch content in this water really enhances the pasta flavor.
Strain excess water.
Coat well with oil to prevent pasta from sticking.
While pasta is boiling, add olive oil in a pan.
To it, add garlic and chilli flakes to oil (before it is heated).
Cook for a min or till garlic starts to brown. This will help release the flavour of garlic and chilli flakes in oil.
Next, add spaghetti pasta and toss well.
Also, add the reserved pasta water. Mix well. Cook for 2-3 mins.
Season it with salt, pepper and basil leaves. Mix well.
Finally, add cheese and mix.
Serve hot.