Composting is still possible if you have only a small garden or even a container garden.
Most larger gardens make heaps of at least 1,5m x2m at the base and decompose through a heating and cooling process. However, you can achieve good compost on a much smaller scale as well.
Get yourself some chicken mesh and build it into a cylinder of about 50 -80cm in diameter. Ideally, it should be 1m tall - and leave the top and bottom of the cylinder open. If you are doing this on a balcony, place a layer of newspaper underneath as a floor. Now proceed to simply add any kitchen vegetable scraps as they become available. If you can get hold of some fallen leaves or some other dry plant materials, just add when possible. The important thing to remember is that the contents of the cylinder should always be damp. During hot weather you will need to water it a little every other day or so.
Once this cylinder is filled almost to the top, then let it still stand for a few weeks to finish decomposing. In the meantime, you can start filling up another cylinder.
When you think your compost is ready, simply lift the mesh cylinder and all the compost will fall out and you can distribute as needed. On a balcony it can also be emptied on the floor and used in the pots as needed.
Materials that can be added to your compost cylinder are egg cartons and newspaper that have been shredded into small pieces (carbon) a little wood ash (not coal or anthracite).
Never add cooked food or meat or cheeses and oils. These will just attract flies that will lay eggs in your compost and result in bad smells.