- Login into the Spotify Developer website using your spotify account.
- Create a new app in the dashboard.
- Add
http://localhost:8000/callback
as the redirect uri in the app settings. - Create an .env file in the root of the project based on .env.example.
- Run
yarn install
to install all the server dependencies. - Run
yarn client:install
to install all the client dependencies. - Run
yarn dev
to start the server in development.
- Create new heroku app
heroku create app-name
- Set Heroku environment variables
heroku config:set SPOTIFY_CLIENT_ID=XXXXX
heroku config:set SPOTIFY_CLIENT_SECRET=XXXXX
heroku config:set REDIRECT_URI=https://app-name.herokuapp.com/callback
heroku config:set FRONTEND_URI=https://app-name.herokuapp.com
- Push to Heroku
git push heroku master
-
Add
http://app-name.herokuapp.com/callback
as a Redirect URI in the spotify application settings -
Once the app is live on Heroku, hitting http://app-name.herokuapp.com/login should be the same as hitting http://localhost:8888/login