Hi , I am doing a small project with python - Flask as a back end and angular js as a front end.
If I run a .py file in command prompt , I can see the output from local host address using browser. But If I run a same file in CloudxLab , How can I see the output ? Is this possible ? Thanks .
Hi Gobala,
Yes, you can run Flask application on CloudxLab.
Here are the steps
-
Install Flask in a virtual environment. Follow steps specified in this blog.
-
Setup flask project
-
Run the server, specify the IP as 0.0.0.0 and port as 4040. If port 4040 is used by any other user, change it to 4041, 4043, 4044, and so on. You can use any unused port in the range of 4040 to 4140
-
Let’s say your web console is f.cloudxlab.com and the flask server is running at port 4040, access it on your web browser at address http://f.cloudxlab.com:4040.
Hope this helps.
Feel free to let me know if it works.
1 Like
Thanks for the reply Abhinav , anyway I have done this through my laptop. If chance I will try the same and will let you know.