Web App using Express,React and Spotify API to visualize personal Spotify Data
- Register a Spotify App in your Spotify Developer Dashboard and add
https://localhost:8888/callback
as a Redirect URI in the App Settings - Create an
env
file at the root of the project based onenv.example
and add your uniqueCLIENT_ID
andCLIENT_SECRET
from the Spotify Dashboard - Ensure nvm and npm are installed globally
- Install the Correct version of Node
nvm install
- Install Dependencies
npm install
- Run the React App on https://localhost:3000 and the Node Server on https://localhost:8888
npm start
- Create a Heroku app
- Add your Heroku app as a Git Remote
heroku git:remote -a your-app-name
-
Add
https://your-app-name.herokuapp.com/callback
as a Redirect URI in your Spotify App's settings -
In your app's Settings tab in the Heroku Dashboard , add config-vars
Based on the values in your
env
file, TheCLIENT_ID
,CLIENT_SECRET
,REDIRECT_URI
, andFRONTEND_URI
key value pairs . Make sure to replace thelocalhost
URLs with your heroku app's URLREDIRECT-URL:https://your-app-name.herokuapp.com/callback FRONTEND_URL:https://your-app-name.herokuapp.com
-
Push to Heroku
git push heroku main