How can I generate addresses for all altcoins?
You don't have to just create addresses. You have to track what's happening on each network and make sure that you actually have received funds before you can credit deposits to your customers' accounts. There are easier ways to just create addresses, but you would very much want to run at least one full node of each network under your own supervision to track the networks.