You do not say what country you are in. The systems and regulations differ significantly, voltages, earthing, current limit, cable sizes, protection systems etc.
In the UK you can go to the local library and borrow a copy of the current ! regulations. The law here allows non professionals to...