For all of our debugging/testing, we used Postman extensively while running the server locally, sparingly adding our changes to the production server once we knew everything worked.
Most commits are on this account since we completed a lot of collaboration in person during class, and committed our changes form one computer in order to avoid annoying git merge issues.
The Flask backend was pretty difficult to understand, but relatively easy when using an OOP mindset(importing classes, using constructors, etc.)
This was when we started to finalize our API, and tested out different functionality. Both me and Srijan were very comfortable with coding in Flask and writing the API code, so it was relatively easy to move on from this point onwards.
Added lyricgenius API along with API token created on the Genius.com API tab
Passed in the lyrics argument to each song initialization
IMPORTANT NOTE: make sure that you write .lyrics after each genius.search_song() function call because this accesses the actual lyrics element of the Genius Song class that is returned.
Extra "junk" text was included in what lyricgenius returns
To fix this we splice at "Lyrics" and then display the second element of the newly created array so that we display the lyrics and not the junk at index 0.
Notes:
Procedure
Commit 1 and Commit 2
Commit 3
Commit 4
db.Model
to create our Song data model, and just used methods within that class to initialize variables and the actual data.Commit 5
Commit 6
Commit 7
Commit 8
Commit 9
Commit 10