SaraBee / MCGJ

A Flask web app for running collaborative playlist parties
28 stars 7 forks source link

Instructions and code for running locally with current version #25

Closed dylnuge closed 1 year ago

nebkor commented 3 years ago

I also just got this working locally, and was working on a doc for what to do :) If you create a .env file in the top of the repo with the following entries:

SPOTIPY_REDIRECT_URI=http://127.0.0.1:5000/
SPOTIPY_CLIENT_ID=REDACTED
SPOTIPY_CLIENT_SECRET=REDACTED
# oauth vars
CLIENT_ID=REDACTED
CLIENT_SECRET=REDACTED
CLIENT_CALLBACK=http://127.0.0.1:5000/auth/callback
# enable hot reload of the flask app and in-browser debugger
FLASK_ENV=development
FLASK_APP=mcgj

Then you can just run python3 -m flask run in that same dir (after setting up the oauth app on recurse and installing the deps).

dylnuge commented 3 years ago

@nebkor Yep! I can add a .env.sample or similar to this to capture those 😄

SaraBee commented 1 year ago

I completely forgot about this PR! I think @nebkor addressed this separately, closing this one out.