Some of the original post may be a little outdated now (better electrics options eg vesc) but it is a great intro as the system still works exactly the same.
https://endless-sphere.com/forums/viewtopic.php?f=35&t=56375
There are also a bunch of threads of peoples personal builds. These can be long, but cover basically everything you will come across.