Spotify API Web Auth
Forked from https://github.com/spotify/web-api-auth-examples
-
Clone this repository
-
Install package dependencies using
npm i
-
Make sure to register application in Spotify developer's app https://developer.spotify.com/dashboard/applications
-
Setup local environment variable for node application using dotenv
-
Set your CLIENT_ID and CLIENT_SECRET
-
On line
108
, FRONTEND_URI should point to the server of your application. If you clone from Giflyst frontend, you should not change anything. -
When everything is ready, run
npm start
and it will run the backend inhttp://localhost:8888/
- From your command line, create heroku app.
heroku login
heroku create app_name
-
Create variables in your heroku app. This is how to do it.
-
Add variables for :
SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET
REDIRECT_URI
FRONTEND_URI
- To deploy to heroku, make sure you have added your application in your own git repository.
git push heroku master