Simple Spotify Search using the Spotify Web API helper.
!Note currently only returning tracks from the searched artist --> other implementations later
Because we are using the Spotify API you need a Spotify account. It could be a new free account or your existing account (no extra permissions needed). You can see more details about the API here.
The Spotify web API helper is already included, so you can easily query for the different types of data you want. Check the repo for more details on how to.
You can import and use the Spotify web API helper by importing it in the JS file like so:
import spotifyApi from 'utils/spotify'
npm install
npm start
The server will start at localhost:1337
You can edit the JS files at ./src/js
and the sass files at ./src/css
. After making changes to the files the server will automatically reload the page. If you want to make changes to the HTML file you can find it at ./dist/index.html
.
npm run build
This will generate all the files needed for a full exported build. For convenience it also starts up a server to easily test the build.