pinhob / stats-spotify-profile

Project made with Node.js and React following the Build a Spotify Connected App course made by Britanny Chiang.

Home Page:https://stats-spotify-profile.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Connected App

Project made following the "Build a Spotify Connected App" course made by Britanny Chiang.

https://stats-spotify-profile.herokuapp.com/

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

  7. Create a Heroku app

  8. Add your Heroku app as a git remote

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

  10. 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
  11. Push to Heroku

    git push heroku main

About

Project made with Node.js and React following the Build a Spotify Connected App course made by Britanny Chiang.

https://stats-spotify-profile.herokuapp.com/


Languages

Language:JavaScript 92.3%Language:HTML 5.7%Language:CSS 2.0%Language:Procfile 0.1%