Application Link: https://diogenispanagiotis.github.io/spotify-api/
I've recreated the Music Track Player utilizing the Spotify Web API with some modifications.
Design decisions:
- Altered the three input box layout to have just one input box for searching based on the actual interface of the Spotify mobile application
- Added a select option box to determine whether the data request is for "albums", "artists", or "tracks"
- Created a select option box to determine the order of the list rendered (ascending or descending) alternatively to a "button"
GET https://api.spotify.com/v1/search
- type: "album", "artist", "track"
- market: "US"
- limit: 10
- There is no popularity information provided in the Spotify API so "ascending" and "descending" is simply switching the list order
- Decided to use select option elements instead of buttons but this could be altered if preffered
- Mobile friendly using media queries
- Fetched Spotify access_token before each request as it expires quickly but possibly it might be good to fetch the access_token upon "componentDidMount"
- Please let me know if you have any questions! I would love to discuss some of the choices / decisions created in this application.
Runs the application in development mode.
Open http://localhost:3000 to view it in the browser.
Launches the test runner.
Builds the app for production into the build
folder.