Yes, for someone with limited machining capabilities, using rear hub motor with either screw on freewheel type or cassette is indeed the easiest option.
For someone with a lathe and milling machine etc, adding sprocket to the front hub should be a simple matter (providing there is enough meat on...