GithubHelp home page GithubHelp logo

spotify-react-app's Introduction

Spotify Connected App

End product of the "Build a Spotify Connected App" newline course

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

spotify-react-app's People

Contributors

gepp4 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.