Building departments have pamphlets and brochures explaining in detail how to obtain permits, and how to design and construct a safe building.