With great difficulty - it's very hard to keep LLMs from generating codebases that are hard to reason about for humans - the spaghetti intermingles with a ball of mud.
So far, my most successful ventures have been tiny CLIs that do something I have been itching to write that one day when I'd had some free time (that never materialized).