mirror of
https://github.com/FoksVHox/02369-Software-processes-and-patterns.git
synced 2025-12-30 00:31:34 +01:00
No description
| .mvn/wrapper | ||
| src | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||
| README.md | ||
02369 Group 6 Project
Song queue for Spotify
Install and run project
-
Ensure that Maven and Java v21 is installed, as the project requires these to build and run.
-
Login to the Spotify Developer Dashboard and create a new application, with the redirect URI=
http://127.0.0.1:8080/callback/spotifyand Web API enabled. -
Rename the file .env.example and replace the example
CLIENT_IDandCLIENT_SECRETfields with values from the Spotify Dashboard. -
Start the web server with the command
mvn spring-boot:run. -
Open http://127.0.0.1:8080/ in your browser and use the website.
Run tests
- Before running the unit tests make sure the project is setup as described in the previous section.
- Run the server with the command
mvn spring-boot:run. - Press "Login with Spotify" and login in with your Spotify account.
- Copy the access token displayed in the spring boot console (the console where you ran the command in step 2) and replace the example token for
TEST_ACCESS_TOKENin the.envfile with this newly created token. - Stop the running server and run the command
mvn verifyto run all the tests.