Description: gist.github.com/stujo/9aa6f5b2e16eb04c0bed5b69e187c352 Heroku hosting: mytunes-blythe.herokuapp.com
-
Only one artist is allowed per album and also song.
has_and_belongs_to_many
could be used between User and Song to create and association for additional artists for each song. -
Users cannot share artists, albums and songs. In a real app, I would assume that artists and songs and albums could be shared by users. I would use
has_and_belongs_to_many
relationship between user and each respecitive association. -
Search does a wildcard search for matching albums, artists or songs. The limitation is that the song must exist in the album. A search for “He” would return a song called “Grape” from an album “Hello”. A nice enhancement would be to make a separate list of songs, albums and artists.
-
Favorites are working with AJAX but I didnt have time to build the views to show them. Instead of adding a favorite boolean field, I used polymorphism. If the app is upgraded to allow sharing objects amongst users this would be necessary, and it was fun!
-
This was my first time trying Postgres, devise gem for user authentication, and the bootstrap nav bar. I dont recommend devise, as there is a lot of overhead for a simple app. Bootstrap rocks. Postgres works. Falling down these rabbit holes made it take a bit longer to build the app.
-
Test coverage (with Rspec and FactoryGirl) is weaker than I prefer. Its hard to have full coverage in a few hours and I got distracted by the stupid devise gem