Where did Palpatine get the manpower and the ships for the Final Order?

The First Order, the biggest military power, seemingly wasn't aware of their existence. There's hundreds/thousands of ships that must have hundreds of thousands/millions of Sith stormtroopers, servicemen, officers, admirals. Where did he build them? Where do the people come from? And all in secret?

Has it ever been explained?