relotnek / dreamhouse-disco-old

A fun demo app to show off Heroku basics including Teams and Pipelines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dreamhouse Disco

Hi 🤓 Are you ready to party?

Deploy

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.

Running

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.

About

A fun demo app to show off Heroku basics including Teams and Pipelines


Languages

Language:JavaScript 55.7%Language:CSS 43.7%Language:HTML 0.5%