Code a simple app In Flask
How To code a simple Flask Application
This page explains how to code a simple Flask application.
Prerequisites
Basic programming knowledge in Python
Basic Flask knowledge
Comfortable using a terminal
A minimal app
Before using Flask, we need to install it. Open a terminal and type:
Create a new file hello.py with the following content:
Once the file is saved, let's start the app:
By visiting the app in the browser we should see "Hello from Flask" message.
Links & Resources
More Flask Apps provided by AppSeed
More Flask Dashboards - a curated index provided by AppSeed
Last updated
Was this helpful?