We are going to develop a Flask-based REST API that will be deployed as serverless on AWS Lambda. So, here, installing and configuring Flask would be in a virtual environment.
We are going to be creating a virtual environment and enabling it to install all the required packages. This can be done using the following command:
virtualenv .env -p python3.6
source .env/bin/activate
Now, we are going to list all of the required packages in the requirements.txt file and we will install all of the packages at once. The following describes the content of the requirements.txt file:
Flask==0.12.2
Flask-JWT==0.3.2
Flask-SQLAlchemy==2.3.2
Flask-Migrate==2.1.1
flask-restful==0.3.6
zappa==0.45.1
Now, we can install all of these packages using the following command:
$ pip install -r requirements.txt
That's all of packages that will be...