I put my hubmotor on the front. Balences my cargo, my battery is hung up there too off aluminum angle screwed to the frame bosses. (cargo bike). I have a steel non-suspension fork. aluminum or suspension negates ability to put motor on the front. Front motor allows me to have 8 speeds on the rear, which my bike came with. Rear hub motors require 7 speed freewheel. Don't power front hub motor across ice, sleet, wet metal plates , rock, or slick wood bridges.
engineering not required. You need to be able to crimp on a bullett connector or spade terminal or .250 flag terminal from the auto supply. 14 ga wire from there too. Klein or Ideal crimp tool works best. You need to be able to match the colors of the wires. You need to be able to operate a tie-wrap to hang wires and loop up any excess. (also in bags at auto supply). Do not buy ****ese crimp terminals. They melt at 30 amps. My auto supply has dorman which is ****anese. Also electronics & industrial supplies have 3M, Ideal, T&B, TE connectivity (amp) or Panduit real crimp terminals.
You need to be able to saw off aluminum angle and drill holes in it for 4 mm or 5 mm screws. That is to make a bracket to hang the controller from somewhere. I hung my controller for years with a Spam can lid as a clamp around the seat post. Seat kept the controller out of the rain. Use elastic stop nuts from industrial supplies to keep screws from coming unscrewed. New motor had wires to short to run under seat, so I hung it from the battery bracket on the front. Use safety glasses with power tools. You don't need a power saw, I use a hack saw & a vise.
My battery mount is made from aluminum angle & 5 mm screws, which makes it generic and unlikely to go out of production as custom batteries for integrated battery bikes are likely to do. Wrapped in plastic bag against rain and foam sheet against cold weather.
You need a torque arm. A clamp cut out of sheet metal works best. I cut up a box fan frame with sheet metal shears. Use gloves. file down any sharp edges. Hose clamps may not be strong enough.
I really like my Mac12 motor. You may not be allowed to buy something this torquey.
I'm not a flying scotsman. I'm a moto-indian. The native Am kind (about 1/3).
Happy shopping.