SE310-1 / W.A.K

W.A.K is a movie tracker web-app developed to simplify and enhance the movie-rating experience while making this process more fun and customisable.
MIT License
2 stars 12 forks source link

Add Recommendations #83

Closed scor728 closed 11 months ago

scor728 commented 11 months ago

Adds 12 Recommendations underneath the users friends list based on the the content of their favorites list. This uses the existing movieDB database's recommendations feature.

1fav

nofavs

Ideally merge this after #82

Closes #78

klam656 commented 11 months ago

Hey Sam, I try to run your code, it seems does not work on my machine. When I clicked on the favourite button. it shows me this.

Screenshot 2023-10-12 at 12 22 40 PM

Try login to my account: username: 11 password: 11 and see whether if you get the same error.

Further info about the error:

Screenshot 2023-10-12 at 12 28 40 PM
scor728 commented 11 months ago

Hey Sam, I try to run your code, it seems does not work on my machine. When I clicked on the favourite button. it shows me this. Screenshot 2023-10-12 at 12 22 40 PM

Try login to my account: username: 11 password: 11 and see whether if you get the same error.

Further info about the error: Screenshot 2023-10-12 at 12 28 40 PM

I think that your token issue may be due to the particular user(in this case 11)'s auth token being expired. If you run npm run installAll from the root folder, then logout and login, it should be fixed.

I have noticed some other issues with the fetching of favorites on this account compared to the other accounts I used for testing, which are likely a result of Sukhleen's Backend Changes as mentioned on Discord.

I think It is probably wise to delay this PR's merge until Sukhleen's Backend Changes are merged, as they have the potential to break this functionality.

scor728 commented 11 months ago

The display is now fixed according to the changes from #84.