Skip to content

BehnH/spotify-dashboard

Repository files navigation

Spotify Dashboard

GitHub License

Welcome to the Spotify Dashboard project! This application provides a comprehensive dashboard for managing and visualizing your Spotify account's listening data. The backend is built using Node and Prisma, while the frontend is built using Next.js and TailwindCSS.

Table of Contents

Features

  • Profile Overview: Get an overview of your Spotify profile information.
  • Top Tracks and Artists: View your most played tracks and artists.
  • Listening History: Explore your recent listening history with intuitive visuals.
  • Search: Search for tracks, albums, and artists on Spotify.

Setting Up

Important

Do not set your domain to contain the word spotify. This will most likely get your domain flagged as a phishing site by Google & others.

Docker

  1. Go to https://developer.spotify.com/dashboard/ and create a new application.
    1. Add http://localhost:3000/api/auth/callback/spotify as a redirect URI.
    2. Add <Your_Domain>/api/auth/callback/spotify as a redirect URI.
  2. Run the image with the following command:
docker run -d \
    --publish 3000:3000 \
    --env SPOTIFY_CLIENT_ID=<CLIENT_ID> \
    --env SPOTIFY_CLIENT_SECRET=<CLIENT_SECRET> \
    --env JWT_TOKEN_SECRET=<Generated 64 character string> \
    --env DATABASE_URL=<PostgreSQL connection string> \
    --env PUBLIC_URL=<Your_Domain> \
    --name spotify-dashboard \
    ghcr.io/behnh/spotify-dashboard:latest

Development

Note

The following instructions are, at this time, incomplete while I refactor the dev environment setup.

Requirements

  1. Node.js (v20.x)
  2. PostgreSQL (v12.x)
  3. Spotify Developer credentials
    1. Go to https://developer.spotify.com/dashboard/ and create a new application.
    2. Add http://localhost:3000/api/auth/callback/spotify as a redirect URI
    3. Copy the Client ID and Client Secret
    4. Create a .env file in the backend/ directory of the project

About

Your Spotify history. Visualised.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published