Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.3 KB

README.md

File metadata and controls

15 lines (13 loc) · 1.3 KB

Spotifyzer-api

  • Rails API for Spotifyzer - an app that allows users to analyze their Spotify library and listening habits
  • Provides data and makes Spotify API calls for React front end (repo)
  • View live site here (please be patient while Heroku wakes up) down temporarily - please see demo below instead

Features

  • Authorizes users through Spotify's Authorization Code Flow, in tandem with front end
  • Requires authorization for all API requests
  • Utilizes Ruby's Thread class to avoid IO blocking when persisting a user's saved library data (which may take anywhere from a few seconds to a couple of minutes depending on its size)

Architecture

  • See app for application code
  • Utilizes the Spotify Web API to authorize users and access private data
    • In order to use this repo, you must register your app with Spotify and store the client id, secret key, redirect uri, etc. as environment variables (I recommend the Figaro gem)
  • PostreSQL database stores basic user info and library data