Tom Stanton does a DIY electric bike on his channel, here is the link to the first video, there is a series.
Hope this helps...
EDIT: I have watched many of Tom's videos and he uses solid engineering principles and thought process in his builds and I am quite impressed.