Set the handlebar so the drops are at your preferred angle. Set the shifters so the hoods are horizontal or angled slightly up. Tape the cables with electrical tape and go out for a ride carrying the allen key(s) for fine adjustement.
Repeat the latter until you are sure you've got the right position and then wrap the bar.