hershal-rami / squadify

Python Web App integrated using Flask that interfaces with the Spotify API to merge different user's playlists while maintaining song diversity and balance
GNU Affero General Public License v3.0
3 stars 0 forks source link
css flask html python spotify tailwindcss web-app

Squadify

PARTY TIME!!!

Running In Development

  1. Run MongoDB with a database called squadify containing two collections named squads and tokens
  2. poetry install --no-dev
  3. In css, run npm install && npm run dev
  4. In the Spotify dashboard, get the client ID and secret, and set the redirect URI to http://127.0.0.1:5000
  5. Set the environment variables SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and SPOTIPY_REDIRECT_URI="http://127.0.0.1:5000"
  6. Enter the virtualenv. For instance poetry shell.
  7. FLASK_ENV=development FLASK_APP=squadify flask run

Running In Production

  1. Run MongoDB with a database called squadify containing two collections named squads and tokens
  2. poetry install
  3. In css, run npm install && npm run prod
  4. In the Spotify dashboard, get the client ID and secret, and set the redirect URI
  5. Set the environment variables SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and SPOTIPY_REDIRECT_URI
  6. poetry run gunicorn squadify:app