A Spotify-connected app that detects when you skip a song frequently and suggests you remove it from the playlist
This project makes use of the Spotify Web API Java library and Spring MVC
Create a Spotify application at https://developer.spotify.com/my-applications to get ID and Secret values
Clone this repo
The application can be run in IntelliJ through the Application.java
file
Edit the Spring Boot configuration and add the following VM options from the setup step:
-DspotifyClientId=<id value>
-DspotifyClientSecret=<secret value>
Using values from the setup step, run
mvnw clean -f pom.xml spring-boot:run -Drun.jvmArguments="-DspotifyClientId=<id value> -DspotifyClientSecret=<secret value>"
To enable debugging, add the following and attach a remote debugger on port 5005
-Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
Spring runs a built-in H2 database.
To connect to the database, you can go to http://localhost:8080/h2-console/
Use the following settings:
Driver Class: org.h2.Driver
JDBC URL: jdbc:h2:file:~/SkipAssistantDB
User Name: sa
Password: <empty>