amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

21 like #157

Closed amilner42 closed 7 years ago

amilner42 commented 7 years ago

Closes

Closes #21

Description

Set up code to have basic binary like-system (you either like it or you leave no review, no negative "dislike").

Made Opinion models on frontend/backend to represent this, currently they have a Rating which just has one option Rating.Like, but in the future we may want multiple different ratings and the code is set up to handle that (for example, we may have "favorite/star/bookmark" as a rating as well).

Snapshots

image

image

image

image

amilner42 commented 7 years ago

Tested that localStorage will update properly from master -> 21-like.