ionic cordova live reload 1

ionic cordova live reload

ionic cordova run android -l

Here is what the above code is Doing:
1. We are importing the Flask class.
2. We are creating an instance of the Flask class. The first argument is the name of the application’s module or package. If you are using a single module (as in this example), you should use __name__ because depending on if it’s started as application or imported as module the name will be different (‘__main__’ versus the actual import name). This is needed so that Flask knows where to look for templates, static files, and so on. For more information have a look at the Flask documentation.
3. We are defining our first route. This is the part that will be triggered when we open the browser and navigate to http://localhost:5000/.
4. We are defining a function that will be called when the route is triggered.
5. We are returning a string that will be shown in the browser.
6. We are running the application on port 5000 in debug mode.

Similar Posts