Hi 🤓 Are you ready to party?
- Create a Spotify app
- Copy
.env.sample
to.env
and fill in the values. To fill them in you'll need - Postgres database URL
- Redis instance URL
- And Spotify app client ID and client secret
- In your Spotify App settings, add the proper redirect URI. This should be something like http://localhost:5000/api/auth/callback. The hostname and port might be different for you.
- You will also need to define a
URL
environment variable in.env
. This should point to host and port from which the React app is being served (not the API). e.g.URL="http://localhost:5000"
npm install
to install all the dependenciespatch node_modules/react-scripts/scripts/start.js 0001-Added-proxyPaths-option-to-package.json.patch
to patch one of the dependencies to make local dev easier.
Run: heroku local -f Procfile.dev
That's the easiest way, but you can use whatever you want depending how you're working on it. There are three processes that comprise the app when running it locally. These are specified in the Procfile
. You can run them all easily using node-foreman
or heroku local
. Or you can run them individually in separate terminal windows.