项目作者: Tinku10

项目描述 :
A web music player using Angular and Spotify API
高级语言: TypeScript
项目地址: git://github.com/Tinku10/spotlight.git
创建时间: 2021-04-09T05:38:10Z
项目社区:https://github.com/Tinku10/spotlight

开源协议:

下载


Spotlight


A web music player using Spotify API

NOTE

As the backend is not hosted as of now, Favourites is not available. So you will not be able to add a music to favourites section.

The token returned by Spotify for validation has to be generated by you as I am not using the proper authentication flow.

If you want to use the proper way of doing this

  • Make a backend.
  • From the frontend redirect to the backend’s appropriate uri which will go to Spotify auth url.
  • From there after all the steps it will return to the redirect_uri you gave in the Spotify Dashboard.
  • Now in the backend you will capture the token returned by Spotify and send it to the frontend.
  • The frontend will store this token in localStorage (or wherever you want).
  • The application in the frontend will use this token for successive requests.

If you want to use the player (without the above steps) perform the following steps. Here some of the steps are bypassed to get the token directly.

  1. https://accounts.spotify.com/authorize?client_id=YOUR_CLIENT_ID&response_type=token&redirect_uri=https://dev-w738k3gh.auth0.com/login/callback
  1. Go to this url
  2. Replace the client_id with your client_id
  3. Press enter
  4. You will be redirected to the redirect_uri containing the access token
  5. Copy the token and add a row to the localStorage by the name token and paste this token there.

And that’s all, now you will be able to access all the songs and albums.