The second one is more comfortable to me, because I want to test them on different devices. Can you just pick up a cell phone and go to a 5000 port development server and get it working?
I am coming from a web designer background with some knowledge of Python and C++. As I read into this, to make Python work online and include cool things like buttons and pictures, Flask has been suggested. When I start learning that, things like GitHub and Jinja are mentioned in Youtube videos. The webdesigner in me doesn't want to go that route. I want to see it grow like a flower online and be able to view from my cell phone here, and my tablet there, and then go to my friend's house and see on their computer like a website.
The GitHub route means I put up a 5000 "development" server and work on it like a car in the garage before taking it for a spin. I went over to a Discord channel and asked about this. They suggested I get used to the GitHub approach (which then the Youtube videos would be more applicable). When I first learned webdesigning, I would take already made HTML and CGI scripts and tweak them here and there to learn how to integrate them into my projects. CSS came along and I added themes/appearance aspects (like replacing frames, tables, etc...).
However, with Flask and Python and all the goodies that come along with it, it appears I have to take a different path. The Github approach means I can't test it as easily unless I know someone on the other end. If I were able to modify things and then just grab a cell phone or tablet to see how it looks on those devices through a website, then I would be able to verify as I go along how that day's progress looks on different devices. To me that is the webdesigner dream, but perhaps if I want to be a programmer who can make something "complete", I need to go the GitHub route and just cross my fingers it will work out in the end.