It shall be unlawful to commence the excavation for or the construction of any building or structure including accessory structures, or to commence the moving, alteration or repair of any structure including accessory structures, until the building inspector has issued for such work a building permit containing a statement that the plans, specifications and intended use of such structure in all respects conform with the provisions of this chapter.