Skip to content

Jarvl/musical-compass

Repository files navigation

Musical Compass

Development

Project Setup

  1. Make sure you have pyenv and pipenv installed. pyenv will automatically set the required python version when you enter the directory.
  2. Create .env file
$ cp .env.example .env
  1. Create a Spotify app and enter the Client ID and Secret into the .env file
  2. Generate a secret key and insert it into the .env file. You can use the following code in a python console to retrieve one
import os
os.urandom(24).hex()
  1. Ensure that you have postgres installed and running on your local machine. If you are using the default DATABASE_URL value, you will need to create a postgres user called admin with the password admin and a database called musical_compass.
  2. Ensure that you have redis-server installed and running on your local machine.
  3. Install dependencies
$ pipenv install
  1. Apply database migrations
$ pipenv run flask db upgrade

Running locally

$ pipenv run gunicorn musical_compass:app

About

Political compass, but for music, based on your Spotify listening habits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published