Composting your kitchen waste is a good way to create good soil for your garden. I have a small area in my garden designated for this. I have a big plastic container in my kitchen for saving all waste, except for anything with fat in it. I save coffee grounds, vegetable and fruit peelings, and parts which aren't eaten, potato peelings, egg shells, tea bags, also fruit or vegetables which have gone bad.
I dump this container, when it is full, into my compost pile. Occasionally I use a shovel to mix the waste with dirt and turn it over. I also add grass clippings, dead garden plants, etc. After several months all this waste is rotted and becomes a very rich soil which can be put in my garden to enrich the soil.
One interesting thing that happens occasionally is, plants sometimes come up in the compost pile as a result of seeds that were dumped there. This is a fun surprise which I enjoy very much!! Also, birds and rabbits come to feast on the vegetable and fruit scraps before I dig them under the compost heap. An added bonus!