/angular-spotify-tutorial-source-code

Source code for Angular 4 / Spotify Tutorial

Primary LanguageTypeScript

Angular (4.x) Spotify Player - Tutorial source code

Output Preview

Videos (italian only)

You can watch this YouTube playlist to see how I wrote this example

UPDATE: Spotify has now closed all its public API.
Now we need to get and inject a token to every XHR request. So I have updated SpotifyAPIService in order to work.

Run demo

  1. Run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

  2. You must register your own Spotify Application and replace client_id and client_secret in SpotifyAPIService

export class SpotifyAPIService {
  client_id = "[YOUR OWN CLIENT ID]";
  client_secret = "[YOUR OWN SECRET KEY]";
  //...
}

Info

This project was generated with Angular CLI version 1.0.0.