You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ovo Okpubuluku edited this page Jun 11, 2022
·
1 revision
Create the requirements.txt file
We are doing this because we will be connecting this repository to Azure App Services for CI/CD.
Before doing that, we need to take one important step. We need to create a requirements.txt file that will contain the dependencies required to run our API. Follow the steps below to create the file:
-Activate your virtual environment.
-Go to your project folder.
-Run the command shown below:
pip freeze > requirements.txt
-It will create a requirements.txt file in your current directory. Your directory structure should look something like this:
Later on we are going to deploy the API on Azure using the same repository, and hence, we need to manually add some packages in the requirements.txt file. You need to add the following text at the end of your requirements.txt file: