Yep, a hub motor kit is your best bet. The first thing you discover when going from gas to electric is sticker shock. It ain't cheap, and w/o a kit it gets pretty complicated for a first time build. The kit will give you everything you need for a simple conversion, and you can work with all sorts of battery possibilities. Might want to read up on the threads here and elsewhere first, and youtube has some great stuff on building an eBike. Compared to gas your range will go way down and the bike weight will go way up, but an electric bike is super quiet and very dependable.
The other route is to just buy an eBike. You can get a decent enough one for $600-$700. Once you have one, you can see if it's going to suit your needs, and it will give you an opportunity to see first hand how things work if you decide to build your own later. They're probably destined to go up in price due to the world virus situation, availability could be tight, and you can always sell it, the demand for anything bike related is sorta off the charts.