App to visually view statistics for music using Spotify's Web API.
Currently a work in progress, so functionality is limited. In the future, users will be able to view statistics for their entire song library and create "filters" to organize their music into playlists.
Currently, the following tools and frameworks are being used for development. These may be subject to change as the project progresses.
- Docker / Docker-Compose
- Flask (backend framework)
- flask-login for remembering User sessions
- Google Cloud Firestore (database)
- Spotify API
- Basic HTML/CSS for front-end
- jQuery
- ChartJS
- DataTables
- Clone the repository
$ git clone [email protected]:zainosaurus/spotify-app.git
-
Install Docker on local machine
Installation instructions are located at https://docs.docker.com -
Set Up Environment Variables Create a
.env
file with access keys to be used to access the Spotify API and Google Cloud Platform.
By default, thedocker-compose.yml
file expects this to be located in thesecrets/
subdirectory, namedsecrets.env
.
Contents ofsecrets.env
:# Spotify SPOTIFY_CLIENT_ID=(Spotify Client ID) SPOTIFY_CLIENT_SECRET=(Spotify Client Secret) # Google Cloud Firestore GOOGLE_APPLICATION_CREDENTIALS=(Absolute path to Google CLoud Firestore secret key json file)
-
Build project Build the project using docker-compose from the root directory
$ docker-compose build
- Use docker-compose to run the project
$ docker-compose up