Setting Up Dependencies
In this step, we will activate our Python virtual environment and install Flask using the pip package installer. To manage the virtual environment, we’re going to use Pipenv. If you haven’t installed it, you can use the below command to install it :
After Pipenv is installed successfully, we can create and activate our virtual environment using the command :
Once our virtual environment is created, we can install the required dependencies using the command :
Flask-SQLAlchemy is a Flask extension that provides SQLAlchemy support. Flask-Migrate is another extension that supports SQLAlchemy database migrations via Alembic.
1