Skip to content

Bill-Merickel/spotify-unwrapped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Unwrapped App

This is a web app built using Node.js and React with the Spotify API that allows the user to view various data about their spotify account, such as number of followers, top tracks, and playlists. The web app also allows the user to sort tracks in their playlist sorted by different metrics, such as danceability and tempo. To visit the app, click on this link.

NOTE: Due to Spotify API changes, the app is currently limited to 25 users that must be added into the Spotify Developer Portal. If you are interested in trying the app, email me your name and email address linked to your Spotify account.

Screenshot 2023-07-11 at 11 52 35 AM Screenshot 2023-07-11 at 11 53 04 AM

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 Render with GitHub

  1. Create a Render app

  2. Click on the New Web Service button under the Web Services option, then click on the Connect Account button under the GitHub menu.

  3. Click on the Configure link and you can give permission to select the repository with the app, then click on the green Install button to give repository access to Render.

  4. Click on the Connect button and you will be brought to a screen where you are required to provide various inputs for your app deployment. Put in a meaningful name in the Name field and complete the other fields. For the Build Command, put

    npm install; npm run build

    and for the Start Command, put

    npm run start
  5. Select the free plan in the Plans section and then scroll down further and click the Advanced button. Here, you can upload your .env file or enter your secrets manually.

    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 Render app's URL.

    REDIRECT_URI: http://your-app-name.onrender.com/callback
    FRONTEND_URI: http://your-app-name.onrender.com
  6. Click on the Create Web Service field and the deployment process will start. Wait for a while until the deployment is finished. Once your app deployment is finished and your app is live, you can click on the deployed application URL displayed at the top of the page to view your app.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors