Your best starting with this guide, yes it is written for an Ender3 but most of it is applicable to what you are trying to achieve as they share similar hardware.
https://duet3d.dozuki.com/Guide/Ender+3+Pro+and+Duet+Maestro+Guide+Part+1:+Wiring/37
No one config is the same!
It is well documented and many users have successfully configured their Ender 3 / CR10 using this documentation.
I use it for my railcore, mainly the calibration section!
Of course if you get stuck, there are plenty of people to assist.
HTH
Paul.