The attached file (discography.txt
) contains Bob Dylan’s discography. Our goal is to get a Trello board through interacting with the Trello API, with the albums classified in lists sorted by decade. Each album should display its year and title and show up in the list sorted by year, and in the case of same year alphabetically. Additionally, we'd like each album to have the cover art if we can fetch it from Spotify. Your solution should be able to do that from the discography file.
-
Download zip file or clone project
-
Unzip
-
Set environment variables using an .env file (see the Environment variables section)
-
Open terminal
-
Go to project location
-
Run the following commands:
npm ci npm run create-board
-
Open terminal
-
Go to project location
-
Run the following command:
npm test
-
Open terminal
-
Go to project location
-
Run the following command:
npm run coverage
The script needs 4 environment variables:
TRELLO_API_KEY
TRELLO_TOKEN
SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET
The trello related variables can be obtained here, while the spotify related ones can be found following these instructions.