www.nytimes.com/2020/10/24/at-home/grow-a-hydroponic-garden.html
It’s not for everyone, but this is a good summary of the ins and outs.
I have had mixed success with micro greens and herbs- I don’t use fertilizer – for me, it’s nice to not have dirt on the windowsill.
If you have a Wegemans near you- they sell hydroponic lettuce and basil that does well on a shelf with sun also.