Skip to content

Web app to visualize personalized Spotify data built with React, Express, and the Spotify API

Notifications You must be signed in to change notification settings

hanscode/spotify-connected-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Connected App

Spotify Web API Integration

Author - Hans Steffens

Project Overview

This project is about a full stack web application to visualize personalized Spotify data with the help of Node.js, React, Express, Styled Components, and the Spotify Web API.

spotify_app_1

spotify_app_2

spotify_app_3

Technologies used

🛠 Local Installation & Set Up

  1. Register a Spotify App in your Spotify Developer Dashboard and add http://localhost:8888/callback as a Redirect URI in the app settings.

  2. Create a .env file at the root of the project based on .env.example and add your unique CLIENT_ID and CLIENT_SECRET from the Spotify dashboard

  3. Ensure nvm and npm are installed globally.

  4. Install the correct version of Node

    nvm install
  5. Install dependencies

    npm install
  6. Run the React app on http://localhost:3000 and the Node server on http://localhost:8888

    npm start

🚀 Deploying to Heroku with Git

  1. Create a Heroku app

  2. Add your Heroku app as a git remote

    heroku git:remote -a your-app-name
  3. Add http://your-app-name.herokuapp.com/callback as a Redirect URI in your Spotify app's settings.

  4. In your app's Settings tab in the Heroku dashboard, add config vars.

    Based on the values in your .env file, the CLIENT_ID, CLIENT_SECRET, REDIRECT_URI, and FRONTEND_URI key value pairs. Make sure to replace the localhost URLs with your heroku app's URL.

    REDIRECT_URI: http://your-app-name.herokuapp.com/callback
    FRONTEND_URI: http://your-app-name.herokuapp.com
  5. Push to Heroku

    git push heroku main

Note

herokuapp.com subdomain names are changing:
Heroku started appending identifiers to subdomains on June 14, 2023. Starting June 14, 2023, new apps get a randomly generated 12-character identifier appended to the subdomain portion of the built-in APPNAME.herokuapp.com domains.
The new format is APPNAME-IDENTIFIER.herokuapp.com, for example, your-app-name-1234567890ab.herokuapp.com

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Web app to visualize personalized Spotify data built with React, Express, and the Spotify API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published