Arduino due cloose loop steeper control

Respect sir,
I see your video on YouTube (Arduino closed-loop stepper motor) And I am purchasing Arduino due and also purchase leadshine stepper motor and driver also purchase an encoder because I am first time purchase Arduino due kindly tell us start to first how to load close-loop code and file into the Arduino due and also tell how to connect the driver and encoder to Arduino.