If you're just learning how to do this, I'd recommend a 6ft baitcaster. Shorter rods are easier to learn the technique on, and once you have the basics down, it's easier to do with 6'6" and 7' rods.
Start simply. Cast it out and let it sit. Give the rod a downward twitch with your wrist. If the bait comes straight forward, you didn't have enough slack in the line. Try again with a bit more slack. If it 'walks' sideways, you had enough slack. Now the trick is establishing the cadence between twitching with your wrist, and reeling in just enough line.
You can also experiment with different amounts of slack, and different twitching to see the effects. You can get the lure to glide gently, pop, swing wide, walk narrowly, etc.