If possible, you should install a dw in a cabinet base beside the sink (either side that's best for you).
ELECTRICAL: A dw should have a dedicated 120v electrical circuit with a standard receptacle beside or behind the dw preferably (15 amp breaker with 14/2-with-ground wiring will meet code, but if you're having to run it new, use a 20 amp breaker and 12/2wg wire in case anyone ever wanted to install a heavy-duty dw later.)
WATER SUPPLY: Hot water only, preferably with its own shut-off valve, off the hot water line under the sink, connected to the valve with a dw supply hose made for the purpose.
DRAIN: Most places require an above-counter air gap from the dw, then the other piece of drain hose from the air gap to a dw tailpiece (connected above the sink trap). It also can be connected to a disposal with dw pipe, but remember to remove the disposal knock-out plug before connecting the drain hose to it. If an air gap is not required by code in your locale, you can just loop the drain hose as high as you can over the dw. Most modern dw's won't allow drain water backflow now anyway.
CAUTION: If you ever plan to add a tile, wood or other raised floor in the kitchen after installation of a dw, it almost always will trap the dw under the cabinet base. You have to raise the cabinet base when installing the dw to compensate for raised flooring in front of it.
Good Luck!
Mike