July 2018
Intermediate to advanced
324 pages
8h 14m
English
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.6source .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.2Flask-JWT==0.3.2Flask-SQLAlchemy==2.3.2Flask-Migrate==2.1.1flask-restful==0.3.6zappa==0.45.1
Now, we can install all of these ...
Read now
Unlock full access