Grow food plants indoors is tricky but can be done and can be actually quite easily.
First thing you should keep in mind is: plant in a fertile and light soil, and one that does not dry quickly.
Fertile because of the lack of space, plants should receive maximum fertility in its soil.
Light soil because the walls of the pot and frequent waterings might decrease penetration of air into the soil, and this might provoke
root rot. Always make soil light but also
water retentive.
Second important factor is light. You should have maximum sunlight for those vegetables, only a south facing window is acceptable (unless you have growing lights). Third and perhaps most important, always water if necessary; you might end up watering every day, twice a day, if its a full sunny warm day outside and plants are actively growing.
I have grown all kinds of vegetables in containers indoors, with food production.
Tomatoes, peppers and eggplants require
compost rich (even 100% compost) soil, require warmth (18-25ºC for tomatoes, and 25-30ºC for eggplants, and for peppers somewhere in between). They require frequent waterings, and if you see they frequently wilt, then it is time to transplant! Don't wait, because you are stressing the plant; transplant as soon as possible and your plant will again recover its vitality. Last, if you transplant seedlings, they usually stop growing for a while, so its best to sow directly in larger pots., but sometimes might also grow a bit more lazy that way.
Bush tomatoes are much easier than interminate tomatoes. Interminate tomatoes require larger pots and more frequent waterings, and also support. You can plant bush tomatoes in really small pots. Interminate tomatoes and eggplants require pots of at least 30cm wide and 40cm deep. Peppers can grow in smaller containers too, but are more happy with some space. Only one plant per pot!
Squash: you can grow in a larger pot, at least 40 x 40cm, and if higher it's better. But they will eventually reach a point where
roots will occupy the entire space and start complaining for frequent waterings and excessive warmth.
Salads require little space but some, like lettuce might be sensitive to excessive moisture, and rot. They also dislike warm temperatures, so, growing them at same time with tomatoes is a bit challenging. Other cabbage family greens, like broccoli also dislike warm temperatures and small spaces, they will produce but smaller heads, and require rich soil (and root rot is much easier indoors)
You can also grow beans, cowpeas in pots. Two plants in a pot 30x 40cm. They will produce well. You can also grow carrots in these pots, but their roots will be smaller. Beans complain much less about water. But when you water, water deeply. Peas are also easy but prefer cooler temperatures.
I also grow sesame, sunflowers, chia, herbs, flowers, gourds, moringa, okra, and many other vegetables in pots. Growing
trees is also funny but you must transplant them when they start "complaining" about space. I also often apply liquid compost, seaweed or diluted
urine to my plants, when I see they need a bit of fertility.