You can either get a router which supports PoE, and a network switch which does. Ethernet cables can be connected directly into these and draw power from them (make sure there is enough total wattage for all your devices). Alternatively you can get a PoE injector for each device, which separates the power and Ethernet parts of the cable.