Open dsuh93 opened 3 years ago
Thanks for the detailed feedback david!
For birthday/age, 500px has age restricted content so I put the age/birthday as a way to filter restricted content, but I may not implement that in the clone.
As for likes I was thinking of doing a polymorphic association as a way to like both galleries and artworks, but that was something I planned on working at the end. So for now, I'll an an extra column in the like table as like_type
as a way to have that polymorphic association and change image_id to liked_id
that can be either an image or gallery
Hey Julian, good job on your design docs so far, here are some notes and comments about stuff to work on!
Wiki Page Home
Comments
MVP List
Comments
Other possible MVPs
, have the bonus MVPs listed as bullets and provide detail for them in case you actually get to them Database Schema
back_ticked
back_ticked
back_ticked
Comments
users
, doesn't seem like the website requires that for signing up, if you have any particular reason for this let me knowsnake_case
users
tableuser_id
for thelikes
table toliker_id
for something more semanticauthor_id
touploader_id
orphotographer_id
follows
table, include the foreign key references and add indexes to foreign keys, try and usephotographer_id
instead offollowed_id
for something more semantic, reminder that each foreign key will still reference users and to add the bullet for eachgallery
should be plural, change togalleries
(these are tables in the db)galleries
Backend Routes
snake_case
GET likes
api endpoint because that info comes through the post show Comments
likes
session
POST /api/session
, the redirect doesn't happen in the backend, so you don't need that part, instead say something like 'logs in a user'