Inspiration

I have always been a huge fan of sports. Entering this hackathon, I decided I wanted to make something related to my interests. Recently, my sister was telling me about a sports trivia night at a bar that she attended where she did not know a single answer. To make a fun game and hopefully increase her knowledge of sports, I decided to make a sports trivia game.

What it does

Using a trivia database api, it gets a list of trivia questions which it asks the user. The user is scored not only on how many he got right but also how quick. If he submits his score to the leaderboards, his score is stored in a database. There is an online leaderboard showing the top ten best scores.

How I built it

I used a basic HTML, Javascript, CSS fronted and a Python, Flask, and MongoDB backend.

Challenges we ran into

Originally, I wanted to host the site on Microsoft Azure, but that turned out to be pretty much impossible given the time constraint. Unfortunately, I had to make the decision to give up on that goal.

Accomplishments that I am proud of

Getting the game fully functional, specifically the leaderboard. I have never used MongoDB or Flask before, so connecting the site to the database was a tough endeavor.

What I learned

Despite being unable to host the site on azure, I spent a lot of time researching and learning about the deployment process for dynamic websites. I also learned Flask and MongoDB.

What's next for Sports Trivia Game

Hosting the site using Microsoft Azure or some other cloud platform is the clear next step for this project. It was a goal of this hackathon that I was unable to complete, so it is my main priority for the project going forward.

Share this project:

Updates