Go to spotify.danieldiekmeier.de to try it yourself!
List the latest albums of your followed artists in chronological order.
You can install this on your own server, if you want.
Before you start, you should register an application with Spotify, by going here: https://developer.spotify.com/dashboard. This is where you get your clientId
and clientSecret
, and where you have to enter your redirectUri
.
- Clone
- Run
pnpm i
(ornpm i
) to install the dependencies - You have to pass these three environment variables to the app:
PUBLIC_CLIENT_ID=YOUR_CLIENT_ID
PUBLIC_REDIRECT_URI=http://localhost:5173/callback
CLIENT_SECRET=YOUR_CLIENT_SECRET
SESSION_SECRET=YOUR_SESSION_SECRET # needs to be exactly 32 characters long
(The easiest way to do this locally is to create a .env.local
file in the root of the project.)
- Run
pnpm build
to build the SvelteKit app - Run
node build
- Go to
localhost:3000
to see the app. (You can change the port by setting thePORT
environment variable.)