Heat the oil in a large pan, over medium heat. Add the onions and sauté them until they become translucent.
Stir in the minced garlic, ginger, and curry powder and cook for another one minute.
Add the grated carrots, chopped green and red pepper, and mix well and cook for 3 to 5 minutes.
Add the diced tomatoes, red chili flakes and season with salt and pepper to taste. Stir to combine, cover, and cook over low heat for about 5 to 10 mins or till the mixture is thick but still moist. Stir occasionally to prevent the vegetables from sticking to the pan.
Stir in the baked beans and leave to simmer for another 5 minutes.