Skip to content

Latest commit

 

History

History
81 lines (46 loc) · 1.6 KB

README.md

File metadata and controls

81 lines (46 loc) · 1.6 KB

musiq_app

Background

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!

Installation

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

Running The Web Page

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.

Running the MySql database on local server

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/