- 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
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.
- Spotify: Retrieves a user’s playlists, songs, and recommendations
- Musixmatch: Retrieves a song’s lyrics.
- 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
Run the following line in your virtual environment
pip install -r doc/requirements.txt
- 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": ""
- 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": ""
Run the following line in your terminal
git clone https://github.com/yaruluo/subtleAsianCoders_luoY-chanM-lauE-leeR.git
Run the following line in your virtual environment
python app/app.py
Open a browser and head to http://127.0.0.1:5000/