First, we go to the https://console.cloud.google.com/ website to create a project before we can actually get an API Key.

Once we have created the Key, we can actually generate the key itself

api_key → AIzaSyAv7lkSB5KqvrYVCgGT7YxF6r6LCpK1nlY

Also install Google’s Python API Client

Command → pip3 install google-api-python-client

Python Virtual Environment

You can establish isolated and self-contained environments for your Python applications with the aid of a Python virtual environment. Each virtual environment comes with its own Python interpreter and is capable of holding its own collection of dependencies, packages, and libraries.

How to Run A Virtual Environment

Command → python3 -m venv venv

After running this, a new folder backend-task/venv was created.

To activate the Virtual Environment:

Command (Linux/macOS) → source venv/bin/activate

Our Virtual Environment is Ready! We can start by developing our project in it now.


Packages and Requirements

To run, our project will need a ton of third-party packages (requirements). To install packages, we'll use a Python package manager.

Our Basic Requirements for this Project till now will be the following things:

asgiref==3.5.2
Django==4.1.3
django-extensions==3.2.1
django-filter==22.1
djangorestframework==3.14.0
djangorestframework-jsonapi==6.0.0
inflection==0.5.1
python-dotenv==0.21.0
pytz==2022.6
sqlparse==0.4.3
tzdata==2022.6
google-api-python-client==2.97.0

How to Install the Dependencies

We will keep this in a requirements.txt file in our backend sub-folder.