Giter Club home page Giter Club logo

video-game-analysis's Introduction

Video Game Analysis

Overview

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 Source

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

Data Architecture

data-architecture

Data Extraction and Load (Batch Ingestion)

  1. Python Script using Mage

  2. Google Cloud Storage (GCP)

Data Transformation

  1. dbt Core

Data Warehouse

  1. Google BigQuery

Data Visualization

  1. Google Looker Studio

Data Orchestration

  1. Mage

Infrastructure as Code

  1. Terraform

CI/CD

  1. GitHub Actions - to generate and host dbt documentation

Data Product

  1. End to end pipeline to extract, transform, and load video game data mage pipeline

    mage pipelien run

  2. dbt docs to view the data model and documentation dbt lineage

  3. Dashboard using Looker Studio dashboard

Setup

  1. Fork this repository
  2. Create a codespace using the forked repository

Google Cloud Setup

  1. Create a Google Cloud account and project.
  2. Install Terraform
  3. In Google Cloud Storage, create 2 buckets (one for historical data and one for the latest data).
  4. Create a service account. Required access:
    1. Storage Admin
    2. BigQuery Admin
  5. Download the service account key and save it as ./keys/gcp-creds.json

    [!IMPORTANT] Do not commit the service account key to the repository.

Compute Environment Setup

  1. Install Terraform (follow the instructions here
  2. Run the following commands to set up the GCP environment:
terraform init
terraform plan
terraform apply
  1. Prepare config files and create directories:
bash script/00_repo_initial_setup.sh
  1. Prepare the files .env

  2. Start the docker containers:

docker-compose up -d
  1. Open the mage application Open Mage

  2. Run the pipeline end_to_end_pipeline Run Pipeline

  3. Check the data in BigQuery

  4. Clone the dashboard in Looker Studio and connect the data source to BigQuery

video-game-analysis's People

Contributors

alangan17 avatar

Watchers

 avatar

Forkers

bdatkins

video-game-analysis's Issues

Project submission

  1. Add End-to-End pipeline in mage
  2. Add setup instructions
  3. Add Data Vis URL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.