This is a fork of the Paul Fitzgerald React-Spotify
project, upgraded to be themeable. Find the originl project here.
If you wish to run the code locally run the following:
yarn
yarn start
visit http://localhost:3000
- Bootstrapped with Create-React-App
- State handled with Redux & Redux-Toolkit
- Styled with JSS
- HTMLAudioElement API for song playback
Spotify uses OAuth2 for authentication and authorization. On initial setup App Authorisation will be initiated. This requests an authorisation token, on success it returns to /app, and includes the following scopes:
- playlist-read-private, playlist-read-collaborative, playlist-modify-public, user-read-recently-played, playlist-modify-private, ugc-image-upload, user-follow-modify, user-follow-read, user-library-read, user-library-modify, user-read-private, user-read-email, user-top-read, user-read-playback-state.
Components are organised under a loose interptretation of the Atomic Design system.
The application is automatically deployed onto Vercel courtesy of a webhook on the Master branch, and Vercels splendid, free tooling.
All updates are tracked in the Changelog under Semantic Versioning.
Released under the MIT License. Check LICENSE.md for more info.
Please note that the Spotify API only provides 30 second audio snippets. It may be possible to get the full track by using the Web Playback SDK.