Flask Setup

Let’s learn to set up Flask on our local system.

To install and run a Flask application on our local system, we have to do the following tasks:

  1. Update requirement file for Flask.
  2. Install Flask.
  3. Create the application.

Update the requirement file for Flask

Let’s start updating the requirement file. The requirements/prod.txt file should mention Flask, since this package contains a script that runs a local web server that we can use to expose the endpoint.

Get hands-on with 1200+ tech skills courses.