Skip to content

MattChann/subtleAsianCoders_luoY-chanM-lauE-leeR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

RYthEM by subtleAsianCoders

Roster

  • Yaru Luo (Project Manager):
    • Oversees & plans incremental project development mile-marks
    • Hosts github repo
    • Helps with minor frontend/backend development
    • Updates design doc, maintains devlog
  • Matthew Chan
    • Write Python scripts to handle requests to modify or retrieve data from databases and APIs using HTTP/necessary OAuth
    • Make SQLAlchemy models for the database tables
    • Creates the GuessTheSong game
  • Eric "Morty" Lau
    • Creates HTML templates and pages according to sitemap
    • Jinja
    • Bootstrap and custom CSS styling
      • We are using Bootstrap because we are all more comfortable with it and believe it looks better than Foundation
  • ray. lee.
    • Write Python scripts to handle requests to modify or retrieve data from databases and APIs using HTTP/necessary OAuth
    • Make SQLAlchemy models for the database tables
    • Creates the HigherLower game

Description

Our website is all about music! We want to create two games: HigherLower, wherein you guess which song of two shown have more listens, and GuessTheSong, wherein you are shown the lyrics to a song and guess what song it is (multiple choice). We also allow user's to connect connect with their own Spotify account and use their own liked songs in the games.

video demo here

APIs Used

  • Spotify: Retrieves a user’s playlists, songs, and recommendations
  • Musixmatch: Retrieves a song’s lyrics.

Instructions

Assuming python3 and pip are already installed

Virtual Environment

  • To prevent conflicts with globally installed packages, it is recommended to run everything below in a virtual environment.

Set up a virtual environment by running the following in your terminal:

python -m venv hero
# replace hero with anything you want
# If the above does not work, run with python3 (this may be the case if a version of python2 is also installed)

To enter your virtual environment, run the following:

. hero/bin/activate

To exit your virtual environment, run the following:

deactivate

Dependencies

Run the following line in your virtual environment

pip install -r doc/requirements.txt

Launch codes

Spotify

  • Head over to My Dashboard | Spotify for Developers
  • Log in with your Spotify account
  • Click the button labeled "CREATE A CLIENT ID"
  • Fill out the form with information about your application
  • Your Client ID and Client Secret are shown on the dashboard for your app
  • Click Edit Settings and add the following to Redirect URI: http://127.0.0.1:5000/callback/q
  • Open app/api.json and paste your Client ID and Client Secret.
    "SPOTIFY_CLIENT_ID": "",
    "SPOTIFY_CLIENT_SECRET": ""

Musixmatch

  • Create a Musixmatch account here
  • Go to your account screen and click the dashboard tab, and then click the applications tab.
  • You should be able to see an API key listed next to your application in a table.
  • Open app/api.json and paste your API key.
    "MUSIXMATCH_API_KEY": ""

Cloning

Run the following line in your terminal

git clone https://github.com/yaruluo/subtleAsianCoders_luoY-chanM-lauE-leeR.git

Running

Run the following line in your virtual environment

python app/app.py

Open a browser and head to http://127.0.0.1:5000/

Languages

  • HTML 46.8%
  • Python 33.5%
  • JavaScript 15.6%
  • CSS 4.1%