This project aims to analyze video game data to identify trends and insights. The data is extracted from RAWG using Python and stored in Google Cloud Storage (GCP). The data is then transformed using dbt Cloud and Mage. The entire process is orchestrated using Mage.
Data is extracted from the RAWG Video Games Database API. The API provides information on video games, including game title, genre, platform, release date, and more. The API documentation can be found here.
For the data dictionary, refer to the dbt documentation (Click Sources
) here
-
Python Script using Mage
- GitHub Actions - to generate and host dbt documentation
-
End to end pipeline to extract, transform, and load video game data
-
dbt docs to view the data model and documentation
- Fork this repository
- Create a codespace using the forked repository
- Create a Google Cloud account and project.
- Install Terraform
- In Google Cloud Storage, create 2 buckets (one for historical data and one for the latest data).
- Create a service account. Required access:
- Storage Admin
- BigQuery Admin
- Download the service account key and save it as
./keys/gcp-creds.json
[!IMPORTANT] Do not commit the service account key to the repository.
- Install Terraform (follow the instructions here
- Run the following commands to set up the GCP environment:
terraform init
terraform plan
terraform apply
- Prepare config files and create directories:
bash script/00_repo_initial_setup.sh
-
Prepare the files .env
-
Start the docker containers:
docker-compose up -d
-
Check the data in BigQuery
-
Clone the dashboard in Looker Studio and connect the data source to BigQuery