by heroku

GitHub Readme.md

Dreamhouse Disco

Hi 🤓 Are you ready to party?


Dev Setup (WIP)

  1. Create a Spotify app
  2. Copy .env.sample to .env and fill in the values. To fill them in you'll need
  3. Postgres database URL
  4. Redis instance URL
  5. And Spotify app client ID and client secret
  6. 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.
  7. 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"
  8. npm install to install all the dependencies
  9. patch 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.