This is an app in which a user answers several multiple choice questions based on personality and current mood, and the outcome will produce a unique Spotify playlist based on their answers. The user will be able to view the 10 songs on their playlist and listen to their new playlist via the Spotify app. Different answers produce different playlists. Enjoy and listen on!
Install lastest version of Python at https://www.python.org/downloads/
Create a directory for the project in your File Explorer.
In command prompt, navigate to the directory you just created (using cd command).
Create python virtual environment by typing:
py -m venv env
Start virtual environment:
env\Scripts\activate
Install django:
pip install django
Install Spotipy Package:
pip install spotipy
Navigate into the directory for the project on the command line.
Run the server:
py manage.py runserver
Copy and paste the address that is returned into a web browser.
Note: MySQL database will be updated/changed using python only - no real need to access MySQL database tables unless curious.
Run the server:
py manage.py runserver
Install Xampp: https://www.apachefriends.org/download.html
Run Xampp Control Panel:
- Start Apache & MySQL
- Click on Admin of MySQL Service
Run these two commands server:
py manage.py migrate
py manage.py runserver
Reference for any help: https://data-flair.training/blogs/django-database/