Back to all projects

Top 50 Games Website (Rowan capstone)

A four-person capstone that I led: collect data from public APIs, store it in a relational database, and build a website on top of it. I also owned the IGDB data.

Overview

The Capstone Experience is the last course in Rowan University’s Computing and Informatics program. Our team of four had to collect data from web APIs, store it in a database, and build a website or application that put the data to work. The project ran in four phases:

  1. Each team member accesses an API and collects data on a shared topic.
  2. The data is parsed, the relevant fields are extracted, and everything is stored in a database.
  3. A website or application is built on top of the stored data.
  4. The finished product is demoed and presented.

We chose video games. The site shows the 50 highest-rated games on the IGDB API at the time of the project. Each game’s page combines IGDB data with the top five YouTube videos, Bing image search results and Reddit posts about it.

Leading the team

I led the team through all four phases. I made training material for the teammates who needed it, and I sat down with each person at every phase to help them through it. Making sure everyone could finish their own piece, and that the pieces fit together at the end, was as much of the job as the code.

My part

Each of us owned one data source. Mine was IGDB: working out which fields the API exposes, extracting the ones the site needed (ratings, release dates, platforms, companies, age ratings, descriptions and cover art), and getting them into the shared database. Teammates did the same for YouTube, Reddit and Bing Image Search, so the database design had to hold four different kinds of data and relate them to the same set of games.

How the IGDB data gets into the database

I wrote two Python scripts, one for each half of the job.

The first one talks to IGDB. The API sits behind Twitch, so the script requests an access token with the client credentials flow and sends it along with every query. It asks IGDB for the highest-rated games along with their platforms, companies and age ratings. Those come back as nested JSON, so the script flattens each game into a simple record and picks the right age rating (ESRB or PEGI, depending on the rating category). Then it sorts by rating and keeps the top 50.

The second script loads those records into MariaDB. A game can be on many platforms and made by many companies, and a platform or a company shows up on many games, so I didn’t want to store them as repeated text on each game. The database has a games table, a platforms table and a companies table, plus two junction tables that link games to each of them. The script collects each platform and company once, then uses their ids to fill in the links. The PHP pages for the website read from that same schema.

The result

The ranked list shows each game’s position, cover art and average rating.

The Top 50 Games list page showing ranked games with cover art and ratings.

Each game has a detail page that merges the four sources: IGDB metadata, Reddit posts and an embedded YouTube video.

A game detail page showing a description, release date, platforms, companies, ratings and age ratings, with Reddit links and a YouTube video below.

How the repository is organized

The repository is split into folders for the database, JSON data, scripts and the website, so each stage of the pipeline is easy to find. It is licensed under MIT and is now archived.

What I took from it

  • Reading unfamiliar documentation and getting someone else’s service to work.
  • Turning API responses into a normalized database that my teammates’ data also had to fit into.
  • Leading a team: planning the phases, training teammates, and checking in with each person one on one.
  • Finishing something that works, then presenting it.