A Spotify-powered music recommendation platform with snoozin 'n friends
The website is currently deployed at https://www.musicrecs.net/
Instructions below show how to run the website locally for development purposes. This guide is geared towards linux but as far as I'm aware, it should be possible to do everything on Mac or Windows as well.
apt-get install sqlite3
)python3 -m venv name-of-venv
source path-to-venv/bin/activate
pip install -r requirements.txt
import secrets
print(secrets.token_urlsafe(16))
export SPOTIPY_CLIENT_ID="insert-spotify-client-id-here"
export SPOTIPY_CLIENT_SECRET="insert-spotify-client-secret-here"
export SQLALCHEMY_DATABASE_URI="sqlite:////insert/database/file/path.db"
export FLASK_SECRET_KEY="insert-your-secret-key"
export FLASK_APP=musicrecs
export FLASK_ENV=development
source path-to-venv/bin/activate
flake8
source path-to-venv/bin/activate
python -m unittest
export SPOTIPY_REDIRECT_URI="http://localhost:5000/sp_auth_complete"
http://localhost:5000/sp_auth_complete
source path-to-venv/bin/activate
flask run
localhost:5000
in your browserexport SPOTIPY_REDIRECT_URI="http://<insert-your-host-ip>:5000/sp_auth_complete"
http://<insert-your-host-ip>:5000/sp_auth_complete
ip addr
in your WSL2 terminal) at the flask port with this command in an elevated powershell terminal:
netsh interface portproxy add v4tov4 listenport=5000 listenaddress=0.0.0.0 connectport=5000 connectaddress=<insert_your_wsl2_ip>
source path-to-venv/bin/activate
flask run --host=0.0.0.0
<insert-your-host-ip>:5000
in browser of your other device on the same LAN as your host