Plant a garden where you can provide these things.
Provide FULL SUN for best growth and flavor. Six hours is minimum, but ten is better. Plants depend on sunshine to develop sugars for sweetness and other elements of flavor.
The soil must have GOOD DRAINAGE. Wet soil means rotting plants. If you need to, build a raised bed.
There must be a source of WATER close by. Make sure that you can get water to your garden daily, if needed. A drip or soaker hose is ideal because it keeps the foliage dry, which helps prevent disease.