Getting started with the Flask web framework

Build and run a simple Flask application in under 5 minutes

What is Flask?

What is a web framework?

What is web development and how is Flask related?

Installing Flask

npm install Python
pip install Flask
pip list
Flask dependencies

Key dependencies

Building our basic Flask application

from flask import FlasksimpleApp = Flask(__name__)@simpleApp.route(‘/’)
def home():
return ‘<h1 style=”color: red”>Hiyee! I am a simple Flask application.</h1>’
if __name__ == ‘main’:
else :

Running our basic Flask application

flask run
python -m flask run

What to do now?

About the author

Problem solver wielding JavaScript and Python as my tools. Builder of RESTful web services and progressive web applications. Scholar of the newly possible.