- Create virtual environment
python3 -m venv {nameofvirtualenv}
- Activate the virtual environment
source {nameofvirtualenv}/bin/activate
- Install packages found in requirements.txt into virtual environment
pip3 install -r requirements.txt
- Go through each line in python file
ingestion\ingestion.py
and check it out!
- If you follow the step below, make sure (it should skip it automatically via the .gitignore) the secret .json document is not shared on github.com - you want to ensure that the general public does not have access to your GCP environment and use up your cloud resources
- tutorial here -> need to create service file (.json) that contains credentials: https://cloud.google.com/bigquery/docs/reference/libraries#setting_up_authentication
- role type,
editor
- should give enough permissions - create new key (.json) type and save it into ingestion/example_files/bigquery