Skip to content

K-Banks/On-The-Spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On The Spot-ify

By: Kayl Eubanks

Description

This app is a music quiz using the Spotify API and user data to create a personalized experience. The app will only request permission to user's top artists. After randomly selecting 10 artists, the app will play a 30 second clip of a random song and ask the user to identify the artists from 4 choices. This application is built with React via the create-react-app.

Flow of app

  • User will be prompted to log in using their Spotify account
    • OAuth 2.0 token request will prompt user for permission to access their data
  • User will press button to begin a game
  • A game consists of:
    • 10 questions - each prompts user to identify the audio clip being played
    • 4 potential answers per questions (1 correct and 3 incorrect)
    • 30 seconds of audio for each question
    • 30 seconds to submit guess
    • a decreasing points score based on amount of time passed since clip began
    • user will be allowed a single guess per question
    • At end of game user will be shown total number of points scored and number of questions answered correctly
  • Game data flow:
    • initial request for user top artists/user's saved tracks
    • store 10 random artistId/trackId values for answers (assuming every track has 30 sec preview)
    • for each answer artistId:
      • request related artists and store 3 random artist names for each question (30 total)
      • request top tracks:
        • pick random song, store track name, artist name, and preview url

Setup/Installation Requirement for Developers:

  • Clone repository on your local computer from https://github.com/K-Banks/On-The-Spotify.
  • Navigate into project directory in command line.
  • Install node package manager if not already installed on local machine.
  • Run '$ npm install' to download all needed dependencies.
  • Run '$ npm run start' to serve the app on localhost:3000.

Component Tree

Component Tree // 10.05.18 Needs update.

Known Issues

  • Firefox Browser compatibility issue. May not load audio clips.
  • Formatting is not consistent on medium and small screens.
  • Same artist may occasionally show twice in answers.

Future Implementations:

  • High score board recording best scores for set period of time.
  • Button to save a song that played during the quiz directly to your library.
  • Multiplayer mode that will use common artists between players.

Technologies Used

License

This software is licensed under the MIT license.

Copyright (c) 2018 Kayl Eubanks

About

A personalized music quiz app using the Spotify API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published