The easiest option I got to see while I was trying to do this on my system didn't really involve programming.
All I had to do was get an web browser called UC browser for my system. It comes pre configured with an I built hotspot creator. So you can use that easily to create an hotspot on your system. Without typing alot of codes and granting permissions you don't understand.