Do a research to make current structures more effective.
Scout the area you want to attack first. You will get a report on the forces and defenses that are awaiting you in your message inbox.
You are immune from attack for five days, which should give you plenty of time to build up your army.
Joining an alliance to help defend your city from attack is not a bad idea as well.