This repository contains a scaffolded Angular application for interacting with the Spotify API. It serves as a open-ended starting point for CareLineLive technical tests.
Create a file called credentials.ts
in src/environments
and add the following, filling in your Spotify App Client ID & Secret:
export const CLIENT_ID = '';
export const CLIENT_SECRET = '';
This is a very basic Angular application, with no routing. Once you've added the Spotify API credentials, starting the app should load and display a playlist.
SpotifyApiService
will fetch a playlist, all of it's tracks, and their audio features.
https://developer.spotify.com/documentation/web-api/reference/#/operations/get-playlist https://developer.spotify.com/documentation/web-api/reference/#/operations/get-playlists-tracks https://developer.spotify.com/documentation/web-api/reference/#/operations/get-several-audio-features
Run ng serve
, or 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.