This project is implemented as part of coursework for CPSC463I at the University of British Columbia. This project is intended for users who are subscribed to the music platform Spotify. It will allow users, and other users within their “Group”, to view each other’s song logs and interact with the logs by “Up Voting” or “Down Voting” a particular log. The type of data we will be storing are Songs along with User Information. This data will be able to be shared among users to access within the group. Additional functionality that we may add/remove based on time constraints is the ability to recommend a played song to another user, and adding commenting functionality to a particular song log for users to provide their opinions (e.g. “This song is awesome!”, “This song is lame”).
create group calls the create_group action, which calls a server method within groupMethods to update the db.
create call adds a new document to the group collection with the creator as the sole member of the group
delete follows similar call stack, with the server method removing the group, and all users who have that group listed in their groupIds. All instances of that group in groupSongs are also deleted.
removed unused groupReducer
close creategroup form once submitted
leave group: if the group is empty once the user leaves the group, the group is deleted. All entries for that user in GroupSongs are also deleted. The group id is removed from the user document's groupIds