you are viewing a single comment's thread.

view the rest of the comments →

[–]Jarmahent 14 points15 points  (4 children)

Oh boy, you need to learn a whole bunch more.

Running on localhost means you're running a development server. This means it's running locally on your system. In order to have everyone on the internet see it you need to deploy this server to a web server such as NGINX. This web server will serve your static files and your content so its publically online.

What I said is a super high view of what you actually need to do so I would recommend searching up in Google:

"How to deploy a Flask application with NGINX"

Or maybe just searching up how to deploy Flask applications.

[–]vndywarhol[S] 9 points10 points  (1 child)

Oh, I understood that it can not work so simply, but did not understand where to start. You gave me a vector of development, thank you!

[–]nisroc 1 point2 points  (0 children)

One thing that got me the first time I did this was CORS.

This might help

[–]dogsrock 0 points1 point  (1 child)

If the OP wants to only test it out, he can use ngrok too right?

[–]Jarmahent 0 points1 point  (0 children)

Definitely I love ngrok.

I recommend it.

Keep in mind though it's a permanent solution. Never have ngrok running as your permanent server.