python --versionin a terminal
PIP, the official Python package manager:
hello.pyand write a few lines of code:
Flaskis imported and become ready to be used
appis an object constructed by
appobject inherit all Flask magic
decoratorthat define a default route for our app
Hello, from Flask!will be displayed.
-mswitch with Flask. Before starting the app, we should export the
http://localhost:5000. By accessing this local address, we should see the message
Hello, from Flask!