You can divide your garden into three sections:
A section for vegetables that grow well in full sun: cucumbers, melons, peppers, tomatoes and eggplants. These plants should be spaced about 1 m from each other. You may also use the space between the plants as a buffer zone between the plants and the garden fence.
A section for vegetables that need a lot of sun: squash, zucchini, watermelons, onions, carrots and garlic. These plants should be spaced at least 2 m from each other.
A section for crops that need less sun: lettuce, spinach, kale and herbs. These plants can be planted closer together.