Quoting Everything
QOL improvements and quoting more then TV shows!
As usable as the API was, it was purly functional and missing some much-needed quality-of-life improvements, first of which being a simple status endpoint that returned the current time & deployed version of the code.
Thanks to using Heroku as my platform, with a simple command I had access to deployment information provided via environment variables - of which I used both HEROKU_RELEASE_CREATED_AT
and HEROKU_SLUG_COMMIT
.
Of course I additionally made this accessible to my frontend, then moved on to getting relative quotes - as in the next and previous quotes from the entity. Much like the status endpoint, I also ended up integrating this into my frontend, of course with tests.
Entity-ization
Right now my content types were TV Shows, but by converting these to generic entities, and updating both the frontend & API parameters I was able to add support for movies - so now each quote would have a reference to the entity ID it belonged to, with queries internally resolving requested params to possible entities.
While this did increase complexity, it did decrease database size, allowing me more space to add additional media overall.