-
Clone repo:
git clone https://github.com/DropMuse/DropMuse cd DropMuse -
Install dependencies:
pip install -r requirements.txt -
Install necessary NLTK data:
python -m nltk.downloader punkt stopwords vader_lexicon -
Copy
.envtemplate:cp .env.template .env -
Add your local DB credentials to your
.env. -
Create the SQL tables from
tables.sqlin your database.
Set the following environment variables accordingly (or add to app/.env):
DB_USER- MySQL usernameDB_PASS- MySQL passwordDB_HOST- MySQL server hostnameDB_PORT- MySQL server portDB_DBNAME- MySQL databaseDB_PREFIX- URI scheme to use for connecting to the db. (Defaults tomysql+pymysql://)
Alternatively, you can set DATABASE_URL to specify the full URL. (Used for Heroku)
Set the following environment variables accordingly (or add to app/.env):
SPOTIFY_CLIENT_IDSPOTIFY_CLIENT_SECRET
You can obtain a CLIENT_ID and CLIENT_SECRET here.
Use http://SERVER_HOST:PORT/spotify/callback as the Redirect URI when setting up the app.
SERVER_NAME- Defaults to0.0.0.0:{PORT}. Used to construct Spotify callback URL.PORT- Defaults to5000. Flask server port. Used to construct Spotify callback URL.
python run.py